-
Notifications
You must be signed in to change notification settings - Fork 132
Description
Proposal: SDL Device Listener
The SDL Android library relies on a complex multiplexing system that operates through a foreground service. This service is started based on the connection of the Media and Phone bluetooth profiles. Since SDL is set up in a way that the mobile device acts as the listening server of a bluetooth SPP connection, the router service must be started and wait for incoming connections without knowing if anything will connect to it. This leads to the service having to start in the foreground for all bluetooth connections. One possible way to avoid this is by introducing a new prerequisite before starting the router service. This is done by adding a new class called
SDLDeviceListenerthat will be activated in theSDLBroadcastReceiverto decide if the router service should be started or not.