Show connection notification from Android app

I have a simple Bluetooth application on Android that connects to a device using RFCOMM. When connecting for the first time, the device must be paired. Android does this by adding a “Bluetooth pairing notification” notification, which the user then needs to click, first pulling out the notification area.

I know that this is the “standard” behavior of Android, but is there any way to get it:

a) Automatic extension of the notification area

or

b) (Preferred) Actually bring the pairing notice to the fore

Many thanks

+3
source share
1 answer

. , . (BluetoothSocket.connect()) , . . Google , , .

0

Source: https://habr.com/ru/post/1772076/


All Articles