1

I'm building an android app that connects to another android app via bluetooth, using the serial port profile (SPP, UUID=00001101-0000-1000-8000-00805F9B34FB).

I'm able to successfully connect from the client (via a BluetoothSocket using CreateRfcommSocketToServiceRecord()) to the server (listening via ListenUsingRfcommWithServiceRecord()), however the bluetooth icon in the notification bar does not show the "connected" bluetooth icon like it does when I connect a bluetooth headset, or other similar device (the "connected" and "disconnected" icons that I expect to see are below).

Why does this icon not change to show that there is a device that is currently connected via bluetooth?

Connected:

Connected Bluetooth Icon

Disconnected:

Disconnected Bluetooth Icon

BitBot
  • 458
  • 4
  • 14
  • i guess it is not possible as rfcomm socket connection is done by the applciations where as headset connections is done by system settings app. Since the notification is updated by system app, it is not possible for 3rd party apps to access the same notification and update. Best things to maintain your own notification icon. – siva Mar 16 '17 at 06:11
  • This seems like an oversight. What's the difference if the connection is maintained by the system or by an app? From a user's perspective, it doesn't make any difference. – BitBot Mar 25 '17 at 13:49
  • Exactly, there shouldn't be any differece, However, AFAIK it is not possible to update system notifications by 3rd party apps. – siva Mar 27 '17 at 05:30

0 Answers0