Forums Login/signup

List bluetooth devices in Java?

+Pie Number of slices to send: Send
So quick question,
Is there a block of code that will tell you every bluetooth connected device, to your computer, in the console.

So for example I (could) have a: Printer, Speakers and an Apple tv connected via bluetooth. And once you have run the block of code in the console it will say something like:
Connected device(s) 3
Speakers
Printer
Apple tv.

(this will vary with what devices are connected.)

Thanks for any help/ suggestions,
Bod
P.S should this have been posted in somewhere like the I.O part of the forums?
                                                                                                                   
+Pie Number of slices to send: Send
What platform will you be targeting - Windows, Linux, Android, ???
1
+Pie Number of slices to send: Send
 

Ron McLeod wrote:What platform will you be targeting - Windows, Linux, Android, ???


Good question,
For now, Mac, but in future I will try universal.
+Pie Number of slices to send: Send
Maybe start by looking at BlueCove.  It supports the JSR-82 API and I believe it hooks into OS/X (I have only used it wilth Linux and Windows).
+Pie Number of slices to send: Send
 

Ron McLeod wrote:Maybe start by looking at BlueCove.  It supports the JSR-82 API and I believe it hooks into OS/X (I have only used it wilth Linux and Windows).


Thanks, I will remember to try that!
+Pie Number of slices to send: Send
First, bear in mind that in the emulator you can't detect 'real' Bluetooth devices without a third-party JSR-82 library such as Bluecove . But when you deploy to a JSR-82 capable phone, it should work.

reply
reply
This thread has been viewed 3193 times.
Similar Threads
Sending over WFi
Apple TV
Printer invoking with J2ME application
Using a private UDDI for adhoc networks
Android or Iphone?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Jun 30, 2025 11:27:18.