Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

List bluetooth devices in Java?

 
Ranch Hand
Posts: 146
Mac OS X IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
                                                                                                                   
 
Marshal
Posts: 4550
572
VSCode Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What platform will you be targeting - Windows, Linux, Android, ???
 
Bod McLeon
Ranch Hand
Posts: 146
Mac OS X IntelliJ IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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


Good question,
For now, Mac, but in future I will try universal.
 
Ron McLeod
Marshal
Posts: 4550
572
VSCode Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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).
 
Bod McLeon
Ranch Hand
Posts: 146
Mac OS X IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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!
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Have you no shame? Have you no decency? Have you no tiny ad?
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic