Hi to everyone, I'm developing an Android application and I'd like to know if Bluetooth is currently in use = if one device is connected to my phone using a Bluetooth connection.
Thanks!!
If you find an answer to this,please let me know. I've been searching for about a month trying to figure out how to determine what blue tooth devices are connected when my app starts.
I'm looking into this myself. I'll keep you informed.
Related
Hi.
I have Orange SPV M1000.
I have tried to get it bonded to a Logitech diNovo keyboard on my PC.
By trying to add it to Settings | Connections | Connections | Advanced | Select Networks | New (internet) | New | (a name : abc, a modem: bluetooth) Next | New... | My_PCs_Name | Next | Name: my_pcs_name |Finish
Then the pops 2 requesters up
1.) This bluetooth device supports Serial port profile, would you like to create a Bluetooth serial port for it? (My answer: both yes or no)
2.) This bluetooth device supports headset profile, would you like to set it as your bluetooth headset? (My answer : No)
I have tried this when Connections | Bluetooth | was set to both "Discoverable" and "On"
but apparantly to no avail.
What I would have liked to work was:
1.) bluetooth activesync
2.) browsing via bluetooth from my PC's connections
3.) filetransfer via bluetooth (might go under activesync)
But I seem unable to get it to work.
Does anyonw have some ideas for this.
Thank you in advance.
Best regards: Jacob Eskildsen / eskildsen
there is no one around here seems to know this
i have been trying to do the exact thing for a few days now, had no joy at all.
there is not even one person using this kind of connection? or just do bother to tell.
I can make PC side working. Internet Connection Sharing bit, and I can even PING my PC from XDAII.
can somebody here help. if you really did this yourself
activesync and internet through bt
I just got activesync and internet working through bt . But I'm not sure how I did it . I have no extra bt software on my phone. I have a usb BT dongle (MSI) and I paired both of the devices. In all the settings I made sure internet sharing was allowed, on the BT network. In activesync in options - rules Pass through is ticked with connection to internet.
On the XDA started activesync through bt and my computer accepted it, and started to sync, the internet then started to work. i think active sync needs to be on for internet to work.
I don't really know the precise instructions, wish I did because i've just lost the connection again, and it will most probably take me another hour to work it out. think this time I better write it down!!!
If you could sync via Bluetooth, then browsing and file transfer via Bluetooth are possible. I've been able to do all of them. Just make sure you choose the ActiveSync profile when you pair your Pocket PC with the Bluetooth device on your desktop PC. If the ActiveSync profile is not available, then choose the Serial Port profile. But afterwards, you would have to go to ActiveSync Connection Settings and manually select the serial port you created.
thanks for advice
I've been having problems, like many people. And I've did what they did. Downloaded bt tools and its working excellent : ). I'm writing this on my xda2, downstairs from my computer. I'm well chuffed. Thanks for your quick reply, it seems your using bt tools too.
Am I ever going to get the hang of this!! BT Activesync ???
I'm able to get Activesync and thus internet through BT, but if I stop bluetooth on my XDA2, and then turn it back on and try to sync, I get an error message, stating Port not available.
What going on? how do I make this port avaliable. I thought I could turn BT on and off without problems, is this not the case. Is my computer configured wrong?
Help!!
Replying to myself!!
OK my problem has been solved, I just turn the BT off and on on my computer.
But what I really want, is to be able to not have to change anysetting on my computer. I would like to be able to enter my house and connect to BT, and then turn it off if I want, and then back on, and then off, on ,off, on..... You get the gist, without have to go upstair to my computer each time.
:twisted:
Any ideas :?
Hi,
Take a look at the guides for bluetooth ActiveSync'ing....
HERE
Thanks
Thank you for that Darius, i'd seen that guide before but forgot where it was. It has helped me to get activesync going anyway. I have actually hard rebooted my XDA2 because my Jabra BT200 stopped working, actually the phone software also buggered up. would ring people but they coud not hear me. Think it may have been BT Tools :roll: Which is a shame, I liked the desktop icons it gave.
At this moment in time I am in the process of restoring my data to my phone over BT, Just hope the BT200, will still work, because before it worked excellent a 100% of the time.
Ive read quite a few threads talking about changing the BT stack, for a more reliable one, but I'm worried about mucking the XDA2 up more.
My next worry is that I've ordered a BT GPS reciever, and I'm gonna try to get Tom Tom working with it, I'm sure I'm gonna have to read quite a few more posts to sort that out. I thought I was good on computers, I think I will have to rethink that altogether.
Hi,
I've recently found my Qstarz BT-880 bluetooth GPS receiver and would like to use it with my Vario 2. I have managed to achieve this in the past but for some reason cant get the phone to stay paired with the device.
If I setup a partnership, the GPS receiver connects as soon as I hit ok and then about 10 seconds later it disconnects; I cant then get it to connect again short of deleting the partnership and starting again.
I also cant remember how you just search for bluetooth devices which you can connect to (other than creating a partnership), is this possible?
Anyone seen behaviour like this before/have any tips they can offer as I'm at a loss?
Thanks.
Now ive looked around this site for a BTPAN fix for my phone. Ive tried a fix for another phone with no luck so what im thinkin is maybe a way to install the widcomm stack on my htc, but i cant find a way. I noticed this is a common problem for my phone. Maybe someone can shed some light on the issue. Thanx.
When you say BTPAN are you simply using to pair with other devices or pc? I have a xv6900 with Verizon (WM6.1) and my pairs just fine with any device..including my LINUX EEE PC which I use for bluetooth dialup.
i can pair my device just fine with headsets or laptops, im talking about a bluetooth personal area network. its kinda like a more consistant pairing. it enables you to use active sync via bluetooth, the main reasons i want it are to use my phone as a modem for my laptop via bt, and to use my phone as a gps reciever for my laptop again via gps. ive noticed all sortsa people are having this problem with the vogue and vista. just the other day i found a solution, i havent posted it yet. http://forum.ppcgeeks.com/showthread.php?t=39305&page=2 so here it is.
Great Start
I too am searching for a solution.
hello,
i search a solution to detect a bluetooth connection, device is equal.
all what i found is getBondedDevices() from BluetoothAdapter, but pairing this is not a connection...
thanks 4 help
Solved!
i use ACTION_ACL_CONNECTED and ACTION_ACL_DICONNECTED from class BluetoothDevice.
Code:
getApplicationContext().registerReceiver(receiver,
new IntentFilter(BluetoothDevice.ACTION_ACL_CONNECTED));
getApplicationContext().registerReceiver(receiver,
new IntentFilter(BluetoothDevice.ACTION_ACL_DISCONNECTED));
Android-Wireless
Helo Sir,
How to switch On Bluetooth and Wireless programatically? Even i can't switch on bluetooth and wireless manually in android.
Emulator shows error.
dineshsubramanian said:
Helo Sir,
How to switch On Bluetooth and Wireless programatically? Even i can't switch on bluetooth and wireless manually in android.
Emulator shows error.
Click to expand...
Click to collapse
Emulator actualy dosn't support Bluetooth, WLan and GPS!
CodeFlatter said:
i use ACTION_ACL_CONNECTED and ACTION_ACL_DICONNECTED from class BluetoothDevice.
Code:
getApplicationContext().registerReceiver(receiver,
new IntentFilter(BluetoothDevice.ACTION_ACL_CONNECTED));
getApplicationContext().registerReceiver(receiver,
new IntentFilter(BluetoothDevice.ACTION_ACL_DISCONNECTED));
Click to expand...
Click to collapse
This only works if the device isn't yet connected. If the device is ALREADY connected when your app starts, how do you detect that, without starting a discovery?
been searching for a few days for an answer to this. Anyone got one?
Thanks
Scott
No one has any ideas on this? A month of searching has so far proven futile, but I can't believe it's not possible...
On the Google android developers site there is a complete example (a bluetooth chat).
http://developer.android.com/intl/de/resources
Hi!
I'm trying to connect my phone (HTC desire running Opendesire last update or HTC stock 2.2) to a serial to bluetooth converter module.
It seems to me that BluetoothChat sample is a good point to start as this application sends bytes over bluetooth.
That's just what i want to do: send some bytes from phone, receive some bytes from the module
I tried to run the Bluetoothchat sample on my phone:
Discovering and pairing the module is ok, but I'm unable to open a connection.
Anyone ever tried (and get success) to do same things as me?
Thank you.
Delvorak said:
This only works if the device isn't yet connected. If the device is ALREADY connected when your app starts, how do you detect that, without starting a discovery?
been searching for a few days for an answer to this. Anyone got one?
Thanks
Scott
Click to expand...
Click to collapse
Take a look at my SpeakerProximity Project => http://code.google.com/p/speakerproximity/
I faced the same problem and the solution that fitted the best was using BT connect/disconnect receivers that always get triggered and update a shared preference.
Hi,
I'm still having some issue with the bluetoothchat sample from sdk and bluetooth to serial converter module.
Now it works fine with AOSP rom but i'm still unable to make connection with HTC stock rom.
I've tried with a friend to run the application on a galaxy spica and we had the same issue. First the application didn't even start on spica and we had to change permissions to avoid Force Close.
Somebody knows what's wrong with bluetooth and HTC or Samsung?
Thank you
detecting bluetooth STATE_ON
in your OnStart() use :
mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
if (mBluetoothAdapter != null) //if null device does not support bluetooth
{
if (mBluetoothAdapter.getState()==BluetoothAdapter.STATE_ON) {
//do stuff
}
}
I use a bluetooth listener for the STATUS_CHANGED event to check if BT is switched on.
If so, i enable my scanning avtivities, else i disable them.
Greetz,
Mike
STATE_ON is not the same as connected, though. (I think).
Personally, I've be having trouble figuring out the disconnect event to listen for, but I think the ACL one is what I need. Will try to remember to post back if I get it working. Damn WiFi process always interupts my transfers epecially when email decides it's time to sync.
Anyways, one tip for those having trouble with the BluetoothChat example is that for some reason you dont want to be listening for a connection at the same time as trying to make one. If you try the BluetoothChat example it actually almost always fails to connect. But if you make sure only one device is using listenforRfcomm... and the other is connecting, you'll connect fine.
The Spica thing is some bug with that phone specifically, though I think some people have solved it with some type of strange method reflection. Check stackoverflow for spica/bluetooth.
Just an update for my problem the ACL braodcasts were just what I was looking for though the diconnect broadcast is sometimes very slow to trigger.
Hi!
I have a question regarding android devices in general. The main question is if this idea is possible with the right app or if you need special hardware?
I want to develop an app that let's you use any android device as a bluetooth headset connected to a cellphone. The setup is primarily for a car installation but other uses are also possible. This is how I want it to work:
I install an Android MID in my car and connect it to the stereo using a cable or bluetooth (depending on whats possible) to get the sound from the mid to the cars speakers. On this MID I'll have google maps and Spotify (or pandora) for navigation and music. So far this is nothing special, but I also want to be able to answer and make calls from a connected (bluetooth) phone (like on many dedicated gps).
By doing this I want the driver (any driver) to be able pair his/her phone with the MID. The calls to the connected phone will be displayed on the MID so their phones can stay in their pockets.
1. Is it possible to answer a telephone call to a cellphone by using an "answer" button on a bluetooth connected android device? Example "My Desire is connected by bluetooth to the android MID. When an external call is made to the Desire I can anser it from the MID".
2. If the answer to no 1 is Yes, is it at the same time possible to share internet via the same bluetooth connection?
Anyone have any idea if this is possible with the right app or if it need special hardware?
Sorry for bad english and long question..
- A
Bathyon said:
Hi!
I have a question regarding android devices in general. The main question is if this idea is possible with the right app or if you need special hardware?
I want to develop an app that let's you use any android device as a bluetooth headset connected to a cellphone. The setup is primarily for a car installation but other uses are also possible. This is how I want it to work:
I install an Android MID in my car and connect it to the stereo using a cable or bluetooth (depending on whats possible) to get the sound from the mid to the cars speakers. On this MID I'll have google maps and Spotify (or pandora) for navigation and music. So far this is nothing special, but I also want to be able to answer and make calls from a connected (bluetooth) phone (like on many dedicated gps).
By doing this I want the driver (any driver) to be able pair his/her phone with the MID. The calls to the connected phone will be displayed on the MID so their phones can stay in their pockets.
1. Is it possible to answer a telephone call to a cellphone by using an "answer" button on a bluetooth connected android device? Example "My Desire is connected by bluetooth to the android MID. When an external call is made to the Desire I can anser it from the MID".
2. If the answer to no 1 is Yes, is it at the same time possible to share internet via the same bluetooth connection?
Anyone have any idea if this is possible with the right app or if it need special hardware?
Sorry for bad english and long question..
- A
Click to expand...
Click to collapse
With the right app, sure. Not sure if you can do it over bluetooth tho, maybe get a SIM for the MID and have your phone forward calls to it while your in the car. But i bet someone could figure out the bluetooth thing.
First of all, there is a problem connecting to the phone wifi due to it being an "ad -hoc" network. But the phone through the tablet is a great idea and some of us are working with such a prototype called "FLEX" it will be a small unlocked cell phone device that connects via BT to the tablet and handles the phone function for the tablet as you have described. Send me a pm if you would like more info.
sent from divested Alltel hero help Root
He's talking about Bluetooth not WiFi
allus_drummer said:
sent from divested Alltel hero help Root
He's talking about Bluetooth not WiFi
Click to expand...
Click to collapse
I know he is talking about Bluetooth... but he also mentioned wanting to connect to 3g of the phone for data I believe.
I've actually had this idea as well! I don't know much about bluetooth programming, but there should be some way to spoof the phone bluetooth device ID or whatever to make the other device believe it's talking to a bt headset. I'm going to guess it might require root.
If you do decide to start coding something like this, let me know how i can help (ie, testing).
cheers,
q
Sent from my Nexus One
Thanks for all the answers. I don't think I'm able to program this myself but was interested in if the concept was possible. If it is I sure hope someone creates it. I would pay good money for a solution like that and I think others would to.
If you come across more information regarding projects in this area please let me know.
Thanks again.