Android Question Limit Starting Intent action to when app is active?

Arf

Well-Known Member
Licensed User
Longtime User
In my manifest, I have a intent filter set for changes in bluetooth bond state, and a BTPair service that is activated when bond state gets changed. All works fine.

I have just realised that the intent causes the BTPair service to start whether my app is active or not. I had assumed that BTPair service would not be triggered when my app is inactive.

Is there any thing I can do to change things so that the intent is not responded to whilst my app is not open?

Thanks
 

Arf

Well-Known Member
Licensed User
Longtime User
I found the BroadcastReceiver library, seems dynamic intent capture is the answer.
 
Upvote 0
Top