JPatrickDev
JPatrickDev

Reputation: 95

Launching an app with bluetooth

I am working on an android app that needs to be able to toggle a setting on one phone after a bluetooth message from the other. I need to know how to make it so that when the message is received, my app opens to handle the request. Similar to how nfc tags work, you can launch an app with it, then read the data on the tag. I need to be able to launch my app, then read the data inside the bluetooth message. Thanks for the help.

Upvotes: 0

Views: 409

Answers (1)

Goo
Goo

Reputation: 1328

The message can't launch an app directly, you have to design a background service wich listen bluetooth message and trigger the app.

Moreover, you can start this service at start up with a broadcast receiver

Upvotes: 2

Related Questions