[Q] Bluetooth - Java for Android App Development

Hello all,
I'm trying to make a short range messaging app that allows people in bluetooth range to just send messages out to whoever might be listening. I've been looking everywhere for how this might be done but I've come up nearly empty handed. I'm almost ready to give up, but when I was examining the way bump sends files there is no pairing to be done it just seems to work. Does anyone know how I might accomplish my goal?
Thank you!

Related

bluetooth stereo g3 wizard

Hi guys, is it possible to have bluetooth stereo on my wizard. Is there maybe a particular rom i must load.
Can any1 help me with this.
Doesnt anybody have any information on this topic.
Dude. Patience.
This site is analogous to a bulletin board, not to a chat room. Sometimes, it takes days before someone with the right answer to your question reads your post. Sometimes, it never happens....and you will almost always find answers if you run a search. You certainly aren't the first person to try upgrading the bluetooth on a Wizard.
To answer you, Yes. There are several options available, ranging from difficult (manual editing of your registry) to easy (load a .cab file or two) to way overdoing it (loading an entire ROM just to get BT stereo) with varying degrees of popularity and success throughout the user population.
I have heard this works on some Wizards:
http://forum.xda-developers.com/showthread.php?t=263745
When I was using WM5 only, I used this successfully:
http://forum.xda-developers.com/showpost.php?p=931212&postcount=1
If you're in love with the idea of flashing an entire ROM for more reasons than just stereo bluetooth, do some reading first, and make sure the ROM you want has "A2DP" capabilities, or you'll be right back here looking at my suggestions again.
Welcome to XDA, and please don't forget to search before asking questions. You'll often save yourself a lot of time and frustration.
edge200is said:
Hi guys, is it possible to have bluetooth stereo on my wizard. Is there maybe a particular rom i must load.
Click to expand...
Click to collapse
BLuetooth stereo is built into the Wizard, with the standard ROM, at least on my T-Mobile (USA) MDA
You just need a BT stereo headset.
Thanks Myrddin Wyllt for the welcome.
Sorry about my impatience i would just like to say what a gr8 forum and you guys are doing amazing work. Been spending hours reading all the post and I hate reading so this is definitely good stuff.
Thanks

Anyone know the progress of bluetooth?

Anyone know how the progress of bluetooth development is going? I'm with my phone and a couple of my mates are going crazy about not being able to send bluetooth files. Personally i find it plain silly that im not able to send/receive via bluetooth, its just stupid. Its 2009!!!
Unfortunatly there is none that I am aware of. There was a program in the market that was something about bluetooth filetransfer but I didn't want to spend the money on it. The are a few hurdles to be jumped before that is a possibility like a built in file browser and also adding the correct profiles. Not a first in the world of cell phones. The iPhone is unable to do it. I find it more funny that that phone is basically a music phone and can't do bluetooth stereo. I am sure maybe there will be advancements towards that maybe with Android 2.0 but probably not much will be able to be done thru 3rd party developers till more options are built into the OS itself.

[Q] switching a2dp and handsfree profile from homemade app?

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

[Q] Bluetooth function

i'm sorry if this question is vague.
I'm working on a app for work that needs to be kept classified until done if it can be done.
I was wondering if there is way to use the bluetooth function on the phone within an app. without having to root your phone.
it's hard to ask this question with out giving away the classified information.
http://developer.android.com/guide/topics/wireless/bluetooth.html
?
You can write code that sends and receives data over bluetooth if thats what youre asking. One example is handling the NMEA messages from a bluetooth GPS
do you think it would be possible to use a android phone as bluetooh headset?
Really depends on the phone and what you're connecting with. I'm not sure if a phone can receive A2DP connections, but it could be possible. Phones definitely can recive data connections over bluetooth, I just don't know enough about A2DP to know if the phone could work as a server for it. Someone else who knows more about A2DP maybe will know though.
It also could be possible to use something like SPP or RFCOMM.
Really, there isn't a good way to answer such a vague question.
sorry i have to keep it classified due to work, if it was a personal project i would give the full details of it.
Totally understandable I just wish I had a better answer for you.
thanks for your help i will keep researching looking the google information and etc
I think that if the Android libraries don't provide what you need (and I suspect they don't), then you are stuck, without root/SU.
I've developed an FM radio app that speaks to the FM chip via HCI, and spent a few weeks trying, but was unable to get raw HCI access except via existing command line utilities on the phone.
mikereidis said:
I think that if the Android libraries don't provide what you need (and I suspect they don't), then you are stuck, without root/SU.
I've developed an FM radio app that speaks to the FM chip via HCI, and spent a few weeks trying, but was unable to get raw HCI access except via existing command line utilities on the phone.
Click to expand...
Click to collapse
yeah that's what i was affraid of ...

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.

Categories

Resources