[Q] switching a2dp and handsfree profile from homemade app? - Android Software Development

Dear XDA folks,
a bit of a story about what the problem is exactly, and how I want to fix it:
I'm a happy owner of an HTC desire with froyo on it, which works like a charm.
There's one small problem though, my car stereo seems to be a bit picky when connecting.
My bluetooth is on, I start the car, and the phone tells me it has connected to a headset, the stereo tells me nothing is connected.
Same happens with the A2DP function, phone says it is connected, stereo doesn't detect it.
After a bit of messing around with it, I found a way to work around this, after connecting, disable and enable the bluetooth profiles (called media and handsfree in android) once, and they both work like a charm.
----
What I want to do, is make an app which checks if the device is connected to the stereo (which shouldn't be much of a problem), and then switch both of the audio profiles off for a moment (one at a time) and then back on.
Problem is, how do I switch them from my app? I've been looking at the documentation for hours, but I can't seem to find out.
The bluetoothchat sample is a great start to build a BT program I think, but I'm pretty much stuck here.
Is there someone who can point me in the right direction?
Thanks in advance

Nobody? I succeeded with making an app that displays the paired devices (after a bit of borowing from the BTchat sample), so that pointed me in the right direction.
Still, I'm stuck with the problem of switching the profiles/services on and off, and I'm sure one of you can help me
Thanks

Hey I'm no expert but you may want to check out the app called tasker in the market, you could look into the app's codes cause from what I experienced, I see a state there that says 'if bluetooth connected...' Then you can add an event to trigger after that.it's an awesome automater app. Base the codes from there.
Sent from my FroyoEris using XDA App

xr4v3nx said:
Hey I'm no expert but you may want to check out the app called tasker in the market, you could look into the app's codes cause from what I experienced, I see a state there that says 'if bluetooth connected...' Then you can add an event to trigger after that.it's an awesome automater app. Base the codes from there.
Sent from my FroyoEris using XDA App
Click to expand...
Click to collapse
Great thanks for the idea, will try that right away.
Will let you know how it turned out.
-edit-
DARN can't find options to enable/disable a2dp and handsfree in tasker, maybe I'm missing it, but so far I don't think it is there.
Thanks for the suggestion though

Help?! Can't believe noone knows how to do this?

Heeeeeeelp! Still stuck with it

Related

Looking for a specific program/piece of code

Hi,
I am currently looking for a piece of software that will do a specific job, or possibly a better solution to what I am trying to do. Let me give you a little bit of background...
I have got an O2 XDA Mini S, and a Parrot hands-free kit that does not support the A2DP bluetooth profile (only the handsfree profile). I am currently using TomTom 6 on my XDA with a bluetooth GPS unit. Everything works really nicely together, except I cannot get instructions from TomTom through my parrot (which is ultimately my goal).
The only way I can see of getting the TT instructions through my Parrot is to make use of the programs floating about that allow you to turn on and off redirection of sound through bluetooth. The idea I had was that if there was a program about (or maybe even write something myself) that would be able to signal when the sound coming out of the XDA exceeded and then dropped back below a threshold level, and then somehow link that into the bluetooth redirection programs, I could basically have any sound that is produced go through the Parrot only when they occur (including obviously the TT instructions).
Does anybody have any ideas on this? Any help would be greatly appreciated.
Thanks.
Point UI, a UI wrapper, has a feature similar to what you're describing. It's used just to save battery power by turning on BT only when an incoming call is detected, and then killing BT after the call is ended. I don't know if it's open source, but you might want to head over to their forums and see if you can find out how they did it.
You probably also want to haunt any TomTom forum sites (if any even exist).
As a final option, look into Mortscripts. People have done amazing tricks with Mortscripts, and this might be just the ticket. Mort haunts these boards, and may pipe in with an "I can (or cannot) do that with Mortscript" too...
I have a question, though. What's wrong with using the Wizard's built-in speakers for getting directions?
Myrddin Wyllt said:
I have a question, though. What's wrong with using the Wizard's built-in speakers for getting directions?
Click to expand...
Click to collapse
To be honest, it's not too bad through the speakers although if I have my radio on which I usually do, sometimes it can be a little bit hard to hear, and it would be nice to just have the radio mute while it gives me the directions.
It's more of a "want" than a "need" really.
Thanks very much for the info
Myrddin Wyllt said:
Point UI, a UI wrapper, has a feature similar to what you're describing. It's used just to save battery power by turning on BT only when an incoming call is detected, and then killing BT after the call is ended. I don't know if it's open source, but you might want to head over to their forums and see if you can find out how they did it.
Click to expand...
Click to collapse
It is quite easy for programs to detect when you're in a call - MortScript, I presume, probably can detect that quite easily as it's an overall Windows feature and will probably have a readily available part in the API.
The problem is not with turning the bluetooth on and off, it's actually detecting when TomTom is giving an instruction. To be honest I think I'll look into MortScript and if that can't do it then I'll probably just give up.
Detecting phone calls isn't that easy, and it's especially not easy to make a check in a simple procedural script language like MortScript (up to WM5, there's no way to check whether a call is active, you have to monitor all the time if a call is accepted or hung up).
Detecting sound output of another application is entirely impossible - at least for most applications. If the app opens the output channel only during output (which most don't because it takes valuable time and causes ugly "click" noises on some devices), one could maybe query the number of free output channels - but that would need a CPU hog monitoring all the time, or half of the message would be over until it's detected.
And even if that would work, there's simply no way to redirect output to a BT headset (except with A2DP). At least on most devices. Once there was a simple way to do that (you just had to open a virtual port, and as long as it's open, everything was redirected similar to the A2DP way nowadays), but most manufacturers didn't implement it, and nowadays it seems like no modern device supports it anymore. (Had it for test purposes in a MortPlayer beta, no user reported it works...)
So, to put it short: Currently it's impossble. Maybe WM8 might change that... (Few hope for WM7, it's proposed to have the same kernel as WM5 and WM6.x)

Elocity A7 working with bluetooth gps

A7 working as GPS using Coplilot live with Holux GPSslim240 bluetooth reciever and app (Bluetooth GPS Provider) every thing works.
nice! do you use a dashboard mount? if so, which one?
sjpn said:
nice! do you use a dashboard mount? if so, which one?
Click to expand...
Click to collapse
No just got It working I would like to find one that it will fit in.
Think this USB GPS would work? http://www.priceplunge.com/
$20 for GPS and software is pretty nice...
Will not without drivers. Already tried.
rspray said:
Think this USB GPS would work? http://www.priceplunge.com/
$20 for GPS and software is pretty nice...
Click to expand...
Click to collapse
You will need a blutooth one. I got mine off ebay
ninetoes49 said:
A7 working as GPS using Coplilot live with Holux GPSslim240 bluetooth reciever and app (Bluetooth GPS Provider) every thing works.
Click to expand...
Click to collapse
How did you get it to connect. Mine doesnt even give the option. it just finds it and sits after recognizing.
immortalsoule said:
How did you get it to connect. Mine doesnt even give the option. it just finds it and sits after recognizing.
Click to expand...
Click to collapse
Heres how I do it. Im running dexter 1.3 mod. You have to install the bluetooth fix. Put you a7 in discovery mode and you gps into discovery mode . Scan for your gps once found pair it with the a7. It should come up and say paired but not connected and thats normal.
Download bluetooth pgs provider from the market and run it. It will ask you to choose your gps. Tap on your gps when you see it. after that you should see a bar that says start tap on that. Now you should see stats at the bottom of the screen from your gps. Now you can run your gps program and it should work mine does. I use copilot live. I also use it on my phone. After I install it on the a7 I had to copy my copilot directory from my phone to the a7 to make it work. There are other bluetooth programs on the market that do the same as bluetooth provider If that doesnt work you could try some of the others
hope that helps
ninetoes49 said:
Heres how I do it. Im running dexter 1.3 mod. You have to install the bluetooth fix. Put you a7 in discovery mode and you gps into discovery mode . Scan for your gps once found pair it with the a7. It should come up and say paired but not connected and thats normal.
Download bluetooth pgs provider from the market and run it. ...
hope that helps
Click to expand...
Click to collapse
I am hitting a dead end. I have tried both Dex's 1.3 mod with the bluetooth fix as well as the 1.4 mod with the same results. In either case, when I go to the market, the Blue GPS app as well as many others don't show up in searches when I try to get them (for example, when I search for meowsbox I only see 3 apps including the "Bluetooth GPS License" but not the GPS app itself). I can see them in my PC browser but not via the market App and in my browser they say they are not compatible with my device. I was able to download Blue GPS manually from source_forge by accepting non-certified apps but that didn't work either (connection errors).
For reference, I see the following in "About Device":
Model Number: A7-040; Firmware Version: 2.2; Kernel version: 2.6.32.9 [email protected] #1; Serial number 2496430001227; Build Number: Dexter's ElocityA7 Mod v1.41; EC version: 0.14;
Also, when I hit the market, I see the following:
Maker:Compal; Model:A7-040; Carrier:T-Mobile;
Any ideas?
nodozen said:
I was able to download Blue GPS manually from source_forge by accepting non-certified apps but that didn't work either (connection errors).
Click to expand...
Click to collapse
this is the only way, and it works.. i have used a bT gps with it..
remember as mentioned to enable "mock location" in settings -> development
Can't find the Bluetooth fix for Dextermod 1.3 does anyone have a copy?
I purchased a GSat Bluetooth GPS receiver and want to use it but all of a sudden I can't enable bluetooth. I'm running 1.3 without any patches and I used to at least have the ability to turn on the bluetooth and pair up a headset. Now, in settings, I can't even get bluetooth enabled (I have WiFi just fine). I was looking for the bluetooth patch that was created for Dexter's 1.3 mod, but can't find it. Does anyone know where I can locate that patch?
I know that I could update to 1.4 (plus patches) but I've been spooked by some of the problems reported, and everything else is working well.
Update: OK, I found it at Post#690 on the Android Dev/Elocitymod thread. I hope it works!
if i recall the right file from examining dexters rom, he replaced either the settings or contacts apk that originally had bluetooth settings option from elocity w one that does not have those bluetooth settings, at least in the 1.41 rom. so upgrading will not help.
Sent from my X10i using Tapatalk
i didnt however inspect the settings fc update. =P
Sent from my X10i using Tapatalk
Bestialbub, if you have any advice for me I would really appreciate it. Your wife is so lucky to have you to help her... my husband is wonderful but l'm the techie of the family!!!
i might have the answer for that one;
1
download and install "anycut" from the market. its a utility application for making convenient shortcuts to important activities and menus in programs.
2
open anycut from your applications menu.
3
choose "new shortcut"
4
choose "activity"
5
scroll down to where i hope you see "Bluetooth settings"
you should now have a shortcut on the desktop labeled "Bluetooth settings". see if that gets you to what you need. it didn't work on my cm6 froyo rom for my x10 phone, and i don't have a tablet in my hands at the moment. i just got a force close error. i should think if the bluetooth app (it is an apk) is working right, it should open that menu, even though you may not find it elsewhere. sorry if it doesn't work.
EDIT; otherwise, if that doesn't work, using the same solution you may find one of the many "Settings" listings further down the activities list could be a bluetooth menu entry as well. they don't list the subnames sometimes for multiple activities/menu's in 1 program. you may also find some of these activities/shortcuts causes your tablet to reboot.
bestialbub said:
if i recall the right file from examining dexters rom, he replaced either the settings or contacts apk that originally had bluetooth settings option from elocity w one that does not have those bluetooth settings, at least in the 1.41 rom. so upgrading will not help.
Click to expand...
Click to collapse
1. i did not remove bluetooth ... why would i do such thing..
2. previous roms had firmware bluetooth problems not "settings" in android.. different story.. different problem..
when its said "bluetooth fix", it means bluetooth boot.img fix, not anything else.. i would not recommend ideas, when you can actually just open and check yourself... and you're not using so why start advising on the firmware you havent seen.. your advise can be easily misunderstood, and you cannot see the problem, as you start directing in wrong direction, which lead to total confusion, which i see now.... why use shortcuts when settings offer a "bluetooth" option like all android would...
@dexter_nlb; i never falsely represent my suggestions as definitive solutions; just possibilities as workaround for a device i didn't have in my hands at the moment.
and for the record, *i* tried both suggested solutions, and yes, i verified the bluetooth settings shortcut i suggested (which could be a convenience for some to have direct access to from the homescreen) worked, as well as yours. i made the silly assumption someone would have checked the settings menu before asking.
@okantomi; under Wireless in the Settings menu in the newest elocity firmware, i cant say for elocitymod version youre running.
sorry dex couldn't CLEARLY answer this before chewing me out. @dexter_nlb; did you try my suggestion before snapping?
i wasn't making things up about your contacts.apk either;
Code:
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
permissions not listed in the contacts.apk you provided that are listed in the factory apk. suggestive that the contacts.apk provided in elocitymod could be lacking some bluetooth functionality OR accessibility to such settings, at the least in the contacts.apk; a system application in your rom.
i'm pretty sure users are permitted to answer questions on xda without your permission, even if they do relate to your rom. wouldn't they be posting directly to your rom thread if they thought you were the only one with all the answers?
and i'm not suggesting you would intentionally remove functionality in your rom; but your rom is a work in progress, just like all roms. i'm sure with room for improvement, and those improvements are generally made with feedback and insight from other users.
good luck with your rom developmemt if this is how you respond when other users try to help each other online, out of your thread nonetheless, on a forum thats says "xda", not "dexter's". you should be taking these opportunities to learn from other people that are willing to help you, instead of assuming you have all the answers. i only quote what other users have been freely pm'ing and emailing me in private, after you've clearly given this impression to other users, and not for the first time.
EDIT: @dexter_nlb; i will have my own a7 by next week. you can rest a little sounder knowing i won't be suggesting untested solutions in the near future. sorry for the scare.
bluetooth access is if the framework require that in combination with a headset that has speech support or similar, but direct related its not.
Contacts and Bluetooth works independently.. and some rights failing during bootup can be ignored, and yes, contacts and calendar is "motorola" design for mobiles, so bluetooth makes less sense here, and the access is not important.
people using BT gps units mostly fail with it, as they think they should have it in "connected" state when they use the bluegps4droid app, but no, just have it paired is ok.. and mock locations enabled in this case under development, but all info possible to find when looking for bluegps4droid..
my previous problem with bt, was firmware flashing in previous releases not happening for all ppl. 1.41 do not have the problem.
the "problems" reported on 1.41 is sdcard related, that did not exist on 1.3 or previous as it were not at all found in android, but only as mount in filesystem. now its fully supported but with some tweaks to work with.
I installed Dexter's Bluetooth Fix for version 1.3 and it worked...I got my bluetooth back. Now I'm trying to get my GPS receiver to connect again -it did so for a while last night and won't connect again since I rebooted. However, I'm sure that's an issue with the hardware I'm using and will keep working on it.
Thanks to everyone who is working on making this tablet work better. I have learned a lot from all of the discussions and explanations. It is very appreciated.
I had an old "Palm" branded Garmin bluetooth GPS receiver laying around; so, I decided to give this a try with my A7. Pairs with bluetooth fine. Connects with Bluegps4droid. GPS stats seems to report the correct lattitude and longitude, but Google navigation does not work at all. I own copilot; so, maybe I'll try that later.

Nexus 7 as hands free bluetooth device?

I know that at the moment this isn't possible, but does anyone know if there is work being done on the Android bluetooth stack to enable a tablet to be used as a bluetooth hands-free device? A bit of searching shows that it is a regularly requested feature but I can't seem to find any info on any developers who are definitively working on this (except for one little questionable nugget that stated that the CM developers were playing with Bluetooth. Hardly enough to go on.).
I want to incorporate a Nexus 7 into my 370Z as a carpc but the lack of being able to integrate phone features is holding me back. Using data apps like grooveip are a no go for me as data connections around here aren't reliable enough for consistent daily use. Thanks in advance for any info.
I'm not to sure of what your asking, but if you wanna make calls from your tablet using BT this app allows you to do that as well as send SMS and MMS from it https://play.google.com/store/apps/details?id=com.apdroid.tabtalk hope that helps and is what you mean
Sent from my Nexus 7 using Tapatalk 2
I appreciate the suggestion but I don't think this will work. What I would like to do is mount my tablet in my car and use it as a front end for my phone to make/take calls the way an OEM bluetooth car system would normally work. My understanding is that your tablet must be paired as a hands free device, which android tablets currently don't do. I looked at Tablet Talk but when using that app from what I can gather when you accept a call on the tablet it actually activates the call on your handset. Ultimately I want to use the tablet as a hands free solution as I drive stick and holding my phone to my ear while driving is a no-no.
In the past I've used bt headsets but I lose them constantly and frankly I'm tired of replacing them. Oh well.
Well, good luck in your search! And you hit tablet talk spot on BTW lol. Oh and if you do find a solution, plz post it! This sounds like something I would love to use.
Sent from my Nexus 7 using Tapatalk 2
SpungeWorthy said:
Well, good luck in your search! And you hit tablet talk spot on BTW lol. Oh and if you do find a solution, plz post it! This sounds like something I would love to use.
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
Thanks. I'll thinking I'll probably go the route of a more traditional carpc for now, but if and when this becomes a feature you can take advantage of with android tablets I'll have to reevaluate the situation.
Nillaz said:
I know that at the moment this isn't possible, but does anyone know if there is work being done on the Android bluetooth stack to enable a tablet to be used as a bluetooth hands-free device?
Click to expand...
Click to collapse
This would be a great extension or compliment to the various apps that let you send/receive SMSs from your tablet via your phone. If I could at least receive/answer calls too, I could leave the phone elsewhere at home.
Just to let you know I've contacted parrot and garmin with regards to something like this.
I want a solution where I can make my nexus 7 a full media center with DAB radio and a good sat nav without needing a cellular link and hands free for my phone which includes the voice commands available through the tablet.
So hopefully they will get back to me and I'll post up here what they say.
Something I haven't solved yet either is getting all the antennae feeds into the nexus, I was thinking of getting a sharks fin antennae and wiring them into a raspberry pi to then blue toothing them into the nexus, I could also then attach a HDD to the pi to use it as a server to.
I want to do it this way so I can take the 7 otu and with me if I wish, rather than having it hard wired in. also if would allow for device upgrade.
Theres a nice thread on install and with references to the tasker app to get the tablet to work with the ignition and other functionality like that;
http://forum.xda-developers.com/showthread.php?t=1819175
b
BT app
There is an app under development for this I think. play.google.com/store/apps/details?id=com.funkyandroid.phonelink
I'm thinking of dropping a Nexus 7 in my car but the lack of hands free bluetooth is kind of a deal breaker.
Did anybody ever get this working? I have my Nexus installed in the car, and would love to be able to use it as a speakerphone. I don't need to actually be able to make the calls via the tablet, just need to be able to use it as a basic bluetooth speakerphone / headset type of thing.
It sounds like it should be something fairly simple, but I cannot seem to find much.
I have been wanting this for a long time, I'd love to be able to take my older Android phone and re-purpose it as a car GPS/Internet Radio/Handfree, etc.
I know the Samsung Galaxy player has this functionality, I wonder if any of their devs could help out.
if this work in linux so i think can work on android
Hi to all,
i been looking for this "bluetooth role" for long time. I have read a lot of forum and the entire XDA posts about this..
it seems that this is the definitive question like "what is the answer to life the universe and everything" simple 42
and it seems that is the paradise for all want to make a carputer/droid/tablet/**** car radio replacement... so... i'm one of you
this post is for some devs (i'm a dev too) i'm asking for help ....
the problem is: which android version do you want to use?
why this question? simple: from the android 4.2 google has decided to trash the bluetooth bluez stack and reimplement the wheel with bluedroid...
i read the documentation about bluedroid at this site:
https://source.android.com/devices/bluetooth.html
and there was written that there are some profiles actualy implemented but not the Bluetooth Hands-Free Profile server.
Ok it's not a problem, taking a look to the template of other profile i can implement it.
now the question is HOW DOES IT WORKS?
so i searched and bum this is how:
version 1.5
version 1.6
ok and now? and now i tried to find some similar implementations and...
after another night of search i found this....
HFP For Linux
where there is the downloadable source code.
now I think we have all the necessary to make this possible...
BUT there are some problem that i haven't resolved yet for a lack of knowledge of course.
it seems that the hfp override any other profiles on that example, it's not bad, in a system that i want to use i need only a HFP profile and AD2P togheter all the rest is useless
i think that this at the end is a fork of the standard android project and how I/we can put it into a rom or a patch and who want to add to a rom/kernel? how it can be done? is a patch better ? a new kernel like franco's or better to submit to google?
I hope to have intrigued someone with this post and I hope that somebody can link me to some documentation to understand how to put all the information I have together.
ps. i have tried to reply into this thread:
[Q] Android phone as bluetooth headset?
but of course i have to few posts to make my suggestion there
I may be out of line here but try reading about the gmate+ device.
I got one paired with my Nexus 7 32gb right now and currently using it as a phone. I believe there are other similar gadgets out there, as I've done some researches before I actually got mine to work. I have yet to try it with a bluetooth headset paired because I lost mine just on the day when I was about to try it out.
Anyway, one problem here is, the app for the device is currently not updated so there are a lot of things that need tweaking and one major issue for me is the ringtone. As I have posted here before, sine N7 does not have native ringtone, there's no alert tone for incoming calls. As for text messages, the notification alert tone works. I know there's also GPRS for it but haven't tried it out yet.
Try these options...
As far as an option for a Nexus 7 you may want to try a sip dialer like 3cx or linphone or zoiper and establish a free sip account at iptel.org or something. As long as you have wifi or a 3g connection which some tablet have you should be able to make and receive calls, or try ""Blue Fi" from the play store. it may work.
naiku said:
Did anybody ever get this working? I have my Nexus installed in the car, and would love to be able to use it as a speakerphone. I don't need to actually be able to make the calls via the tablet, just need to be able to use it as a basic bluetooth speakerphone / headset type of thing.
It sounds like it should be something fairly simple, but I cannot seem to find much.
Click to expand...
Click to collapse
golfnz34me said:
I have been wanting this for a long time, I'd love to be able to take my older Android phone and re-purpose it as a car GPS/Internet Radio/Handfree, etc.
I know the Samsung Galaxy player has this functionality, I wonder if any of their devs could help out.
Click to expand...
Click to collapse
I just got a new Nexus 7 for the same purpose of replacing my vehicles head unit with a tablet.
I am digging into the BT stack since I believe that I should be able to implement (or port) the profile on top of Android 4.3 assuming that the SCO data is available through the raw BT connection. There is an open source HFP implementation on sourceforge for Linux that migh be close enough to do the trick and save a bunch of coding time. It's going to take a while for me to get the time to dive too deeply into this one, but if I succeed or come to the conclusion it can't be done, I will let folks know.
Hello guys.
I am going to buy Nexus 7 for my car for the same purposes, - navigating, internet.
But mainly is for the Hands Free function.
Unfortunately, people saying nexus can't use it. But it's lol...I don't believe nexus7 doesn't support hands free.
Gentelman, tell me any way to make nexus 7 works hands free.
Thank you in advance.
P.S. if you ask wham am I mean when saying "hands free", so there is an example http://www.youtube.com/watch?v=ZEFjDKtlao8
Use some Motorola MotoActiv Bt code?
I have a Motorola MotoActiv running watch... Features gps tracking for running and biking, MP3 player and Bluetooth... The Bluetooth is mainly used for wireless headphones, but if you have a Motorola Phone, the watch can display text msgs from the phone and you can use the headphones/mic through the watch to take calls. (the idea being that you can leave the phone in a pocket or backpack while you're bike riding, I guess, and still take calls.)
The device runs Android (I'm sure someone's rooted it on here). Maybe that code can be dissected and repurposed for what were all looking for??
J
more on Motorola Watch
SmartNexus said:
I have a Motorola MotoActiv running watch... Features gps tracking for running and biking, MP3 player and Bluetooth... The Bluetooth is mainly used for wireless headphones, but if you have a Motorola Phone, the watch can display text msgs from the phone and you can use the headphones/mic through the watch to take calls. (the idea being that you can leave the phone in a pocket or backpack while you're bike riding, I guess, and still take calls.)
The device runs Android (I'm sure someone's rooted it on here). Maybe that code can be dissected and repurposed for what were all looking for??
J
Click to expand...
Click to collapse
Just an update on something I said in my previous post... I was looking at my MotoActiv watch today and it says you have to have an "Android phone" not a Motorola phone as I said in my previous post. So I'm wondering if the phone audio over Bt can be reverse engineered from the Motoactive watch for other android devices.
I actually decided to root my watch today just for the fun of it... it would really make the perfect "Car Head Unit" as it has Android OS, MP3 capabilities, FM Tuner, Bluetooth and Phone audio over Bluetooth built in... if only the screen was larger than 1.5".
Looks like the Nexus 4 and Nexus 7 2013 are getting some love in this area with a new custom stack:
http://www.bluez.org/bluez-for-android-status-update/
Looks like you need some compiling skills, but I think this is what you are looking for.
It must be work... Or not?
Hello guys!
I'm thinking on a same project for a while. It doesn't matter if not work for me, but would be great if yes.
I found something 2 days ago:
Parrot Asteroid Smart
This is an android base head unit/navigation, and the bluetooth handsfree is working on it. How it's possible? Any chance to port it into the Nexus 7?
solution
So i had an idea today and decided to call my carrier (Cricket). They told me it is possible to purchase an extra sim card and they will program the imei# to match my phone. This will enable me to make and receive calls on my tablet as well as my phone using the same number. Also i will have full access to my data.....problem solved with only 15 dollars. I hope this helps somebody.

SOLVED Bluetooth pairing

I have a BT mouse and keyboard. I used to be able to get them both to pair. Now, only the keyboard will pair.
If I delete all paired devices, and re-boot, and then try to pair the mouse, I get a 'blue tooth keyboard disconnected' message, but no success with the mouse.
My hypothesis is that there is a file somewhere in the system, that stores details of previously paired devices, which has become corrupt. If I could delete or edit it, I may be able to fix the problem.
Does anyone know where this file would be, or have an alternative idea?
l'd previously raised this in a mouse-specific thread. but it strikes me as a potentially more general issue, hence the new thread.
tia
Nick
Sent from my Nexus 7 using xda app-developers app
Re: Bluetooth pairing
If no-one knows the actual answer, does anyone know where I can find definitive information on BT functions, data stores and architecture in android? I have tried searching.
thanks
Nick
Sent from my Nexus 7 using xda app-developers app
netwizuk said:
If no-one knows the actual answer, does anyone know where I can find definitive information on BT functions, data stores and architecture in android? I have tried searching.
thanks
Nick
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
/data/misc/bluedroid/ perhaps?
not sure, but I see an .xml file in there that has info about devices that I've paired.
Re: Bluetooth pairing
bftb0 said:
/data/misc/bluedroid/ perhaps?
not sure, but I see an .xml file in there that has info about devices that I've paired.
Click to expand...
Click to collapse
Thanks very much for the suggestion. I tried renarning/deleting those files, but when I turned BT on they were automatically re-created, so the master is obviously elsewhere, although I didn't actually try to re-pair at this point.
There are some configuration files in /etc/bluetooth which are also in /system/etc/bluetooth
I then found /data/data/.com.android.bluetooth/databases. I deleted the files here, and the pairing worked, re-creating the files. Something of a relief as it was driving me crazy.
Sent from my Nexus 7 using xda app-developers app
netwizuk said:
Thanks very much for the suggestion. I tried renarning/deleting those files, but when I turned BT on they were automatically re-created, so the master is obviously elsewhere, although I didn't actually try to re-pair at this point.
There are some configuration files in /etc/bluetooth which are also in /system/etc/bluetooth
I then found /data/data/.com.android.bluetooth/databases. I deleted the files here, and the pairing worked, re-creating the files. Something of a relief as it was driving me crazy.
Click to expand...
Click to collapse
Good thing you got it worked out. Looks like the best person to put on the case was you
But yeah, it had to have been in /data somewhere - /system is mounted read-only.
OT a little bit - I bought a sort of chintzy BT keyboard (RockSoul BK101) some time back, and it seems to "time out" fairly rapidly... after 2-3 minutes of inactivity or so. Even though the N7 shows it as paired, I can't just turn it on/off to get it to connect - I need to re-pair it every time I lose connection with it. Does your BT kbd behave similarly, or have I just got a POS kbd?
bftb0 said:
OT a little bit - I bought a sort of chintzy BT keyboard (RockSoul BK101) some time back, and it seems to "time out" fairly rapidly... after 2-3 minutes of inactivity or so. Even though the N7 shows it as paired, I can't just turn it on/off to get it to connect - I need to re-pair it every time I lose connection with it. Does your BT kbd behave similarly, or have I just got a POS kbd?
Click to expand...
Click to collapse
There's an app called Bluetooth Keepalive that may help with that. You might also find external keyboard helper useful, as you can re-allocate functions to keys, set detection and key press rates etc
Nick
Sent from my Nexus 7 using xda app-developers app

[Q] Motoactv pairing issues with LG Tone+ HBS-730: fixable?

Having an issue pairing my Motoactv to the new bluetooth headset I just bought, the LG Tone+ (HBS-730). Motoactv won't even see it. Headset connects just fine to the phone, and Motoactv connects to phone and old headset (Motorola S10-HD) without a hitch. Tried removing all existing bluetooth connections on all devices. On Motorola's advice, factory reset Motoactv. Nothing seems to be helping.
Does anyone know if this is something that a dev could fix? If it's a simple "no, there's no way modding will fix that", please let me know, so I can return this headset. I really appreciate any help. I bought this thing because it can connect to 2 devices, where the S10 could not. Doesn't do much good if it won't pair, does it?
I couldn't find a better place to put this, since Motoactv doesn't have its own section. Hope that was OK.
davidam091 said:
Having an issue pairing my Motoactv to the new bluetooth headset I just bought, the LG Tone+ (HBS-730). Motoactv won't even see it. Headset connects just fine to the phone, and Motoactv connects to phone and old headset (Motorola S10-HD) without a hitch. Tried removing all existing bluetooth connections on all devices. On Motorola's advice, factory reset Motoactv. Nothing seems to be helping.
Does anyone know if this is something that a dev could fix? If it's a simple "no, there's no way modding will fix that", please let me know, so I can return this headset. I really appreciate any help. I bought this thing because it can connect to 2 devices, where the S10 could not. Doesn't do much good if it won't pair, does it?
I couldn't find a better place to put this, since Motoactv doesn't have its own section. Hope that was OK.
Click to expand...
Click to collapse
If the MotoACTV does not see the headset while the headset is in pairing mode then it won't work. It will not pair with something it cannot see. Not sure why it wouldn't see it though. The MotoACTV uses bluetooth 4.0 so the LG's bluetooth 2.0 should be seen with ease. My suggestion would be to remove all bluetooth devices from MotoACTV. Reboot the MotoACTV and try again. Also make sure that ALL other devices have their bluetooth turned as so they don't see the LG and try to pair with it. If that doesn't work then odds are it won't work at all.
I think this new version of the headset is Bluetooth 3.0. It's the Tone+ 730, not the Tone 700 original (which, apparently, has no issues pairing with the Motoactv).
davidam091 said:
I think this new version of the headset is Bluetooth 3.0. It's the Tone+ 730, not the Tone 700 original (which, apparently, has no issues pairing with the Motoactv).
Click to expand...
Click to collapse
MotoACTV is still 4.0 so it should be compatible with 3.0, good luck
pairing
Ill let you know i own one of these headsets and should be recieving my motoactv in the mail soon.
Any ideas on the issue guys? I have a Motorola h500 and an LG-HBM 235 and neither will pair with the motoactv. It drives me absolutely nuts that the Motorola headset doesn't even work with the motorola motoactv. I mean really, WTF man? I don't want a big stereo headset. SMH. If i could finally get bluetooth audio, this thing would be great. In fact, they need to make a new model with a speaker and mic then it would be the greatest!
Figured it out. Your bluetooth earpiece/headset must be A2DP compatible.
heat22 said:
Figured it out. Your bluetooth earpiece/headset must be A2DP compatible.
Click to expand...
Click to collapse
I can't post links yet, but on the LG site, it says the 730 has A2DP...
Man, this is driving me nuts. I love these headphones, and they seem awesome for running. But I'll never know at this rate...
davidam091 said:
I can't post links yet, but on the LG site, it says the 730 has A2DP...
Man, this is driving me nuts. I love these headphones, and they seem awesome for running. But I'll never know at this rate...
Click to expand...
Click to collapse
I have these headphones as well but have always had them paired to the phone. I just tried to pair them with my actv just to see if my results were any different but unfortunately, I have the same issue.
It may be possible to pair them through a third party app but I haven't tried.
Artimis said:
I have these headphones as well but have always had them paired to the phone. I just tried to pair them with my actv just to see if my results were any different but unfortunately, I have the same issue.
It may be possible to pair them through a third party app but I haven't tried.
Click to expand...
Click to collapse
Any suggestions for 3rd party apps that would do this? I'm willing to try.
Also, does anyone think that modding the ACTV with some of the work the guys here on XDA have done will have any effect? I'm reading threads dealing with similar problems with other devices (e.g. car kits) and some are saying its a bluetooth driver issue. Maybe a custom UI will include different bluetooth drivers?
I know it's annoying to hear people ask for free work, but if any of you ACTV programmers/modders think you can tackle this issue, we'd all really appreciate it. It's incredibly frustrating when you buy 2 things that should work together just fine, but for some unknown reason, just don't.
Thanks!
davidam091 said:
Any suggestions for 3rd party apps that would do this? I'm willing to try.
Also, does anyone think that modding the ACTV with some of the work the guys here on XDA have done will have any effect? I'm reading threads dealing with similar problems with other devices (e.g. car kits) and some are saying its a bluetooth driver issue. Maybe a custom UI will include different bluetooth drivers?
I know it's annoying to hear people ask for free work, but if any of you ACTV programmers/modders think you can tackle this issue, we'd all really appreciate it. It's incredibly frustrating when you buy 2 things that should work together just fine, but for some unknown reason, just don't.
Thanks!
Click to expand...
Click to collapse
Perhaps something like this could work? https://play.google.com/store/apps/details?id=com.IG.BluetoothManager
Alternatively, if your device is rooted there are .conf files under /system/etc/bluetooth/ that could potentially be modified to get this working. For example, audio.conf could be modified to remove "Disable=Headset" as well as enable HFP. These changes could possibly resolve the issue but I haven't tried tinkering with them.
Artimis said:
Perhaps something like this could work? https://play.google.com/store/apps/details?id=com.IG.BluetoothManager
Alternatively, if your device is rooted there are .conf files under /system/etc/bluetooth/ that could potentially be modified to get this working. For example, audio.conf could be modified to remove "Disable=Headset" as well as enable HFP. These changes could possibly resolve the issue but I haven't tried tinkering with them.
Click to expand...
Click to collapse
Ok, so I decided to tinker a little and the app I mentioned did not work.....neither did some of the modifications I made to to the audio.conf file.
However, I did download this app:
https://play.google.com/store/apps/details?id=es.qrr.android.btoolkit
In the app settings, I enabled experimental mode and was able to find the HBS-730 headset and pair with it. Unfortunately, I wasn't able to go any further than that. Even though it is paired, music wasn't routing to it (granted I didn't use the stock music player -- that may have worked).
I believe the actv is treating the HBS-730 like a phone, tablet, or comp rather than just a headset which is why it is not interacting directly with it. There may be another app with root privileges (like the original app I suggested) that could possibly route the audio correctly but I haven't had the time to tinker with it and don't typically need audio output from my actv anyway.
Hope this somewhat helps.
Artimis said:
Ok, so I decided to tinker a little and the app I mentioned did not work.....neither did some of the modifications I made to to the audio.conf file.
However, I did download this app:
https://play.google.com/store/apps/details?id=es.qrr.android.btoolkit
In the app settings, I enabled experimental mode and was able to find the HBS-730 headset and pair with it. Unfortunately, I wasn't able to go any further than that. Even though it is paired, music wasn't routing to it (granted I didn't use the stock music player -- that may have worked).
I believe the actv is treating the HBS-730 like a phone, tablet, or comp rather than just a headset which is why it is not interacting directly with it. There may be another app with root privileges (like the original app I suggested) that could possibly route the audio correctly but I haven't had the time to tinker with it and don't typically need audio output from my actv anyway.
Hope this somewhat helps.
Click to expand...
Click to collapse
I had similiar problems pairing my motoactv with a pair of UE 9000's. It could see the device, but would not pair through the stock menus. Tried downloading some third party bluetooth managers and was unable to get any audio. I believe it has something to do with Apt-X codec for bluetooth not being implemented in 2.3 gingberbread on the motoactv
Artimis said:
However, I did download this app:
Click to expand...
Click to collapse
Here's where I lose all credibility (and help)...
You mean download the app to my ACTV, right? So... How do I do that?
How do I download 3rd party apps to the ACTV? I haven't modded mine at all. Do I need to do anything to it?
I realize I have just exposed myself as a NOOB. Alas, I had no choice. Please continue to speak to me.
davidam091 said:
Here's where I lose all credibility (and help)...
You mean download the app to my ACTV, right? So... How do I do that?
How do I download 3rd party apps to the ACTV? I haven't modded mine at all. Do I need to do anything to it?
I realize I have just exposed myself as a NOOB. Alas, I had no choice. Please continue to speak to me.
Click to expand...
Click to collapse
No worries .
Yes, you'll need to download the app to the ACTV. It will require rooting of the device and installing a custom ROM is the best way to get everything necessary for the market to work so that you can install these apps.
There is a step-by-step tutorial in the MOTOActv rooting thread in this forum.
Any further updates?
Just curious to see how this solution worked out. I am having the same problem and am definitely a NOOB. Attempting to download an app to my Motoactv seem a bit daunting to me...

Categories

Resources