• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Discover multiple devices with bluetooth.

 
Sven Sylta
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I 'm making an app that will use bluetooth to send messages.

Lets say I'm standing with a group of people(at most 7?) and all of them have bluetooth enabled on their android cellphones.
Is it then possible to discover and pair all of them(which is not paired before) in "one scanning"? The tutorials I've seen seems to find just one device and then the scanning stops.

This is how I want it to work:
I press a button and my scanning activity starts.
I find a device and allows it to get paired and add it to an ArrayAdapter.
The scanning continues...
I find another one which is already paired so it will not be added to the adapter.
The scanning continues...
And so on...

Is this possible? Or do I have to start the activity for each device? If it is possible, is it a bad/unstable approach?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic