ponewheel / android-ponewheel

pOneWheel Android app
MIT License
72 stars 25 forks source link

Foreground service #77

Closed audkar closed 6 years ago

audkar commented 6 years ago

refs #23

Extracted BT connection logic from from MainActivity to BluetoothConnectionService. To achieve this MainActivity dependency had to be removed from BluetoothUtilImpl.

Few notable points:

This is how new notifications looks after toggling connect button:

With Don't keep activities mode ON. Activity is destroyed when minimized and new Activity created when app started. Service still running in background and new Activity reconnects to existing Service

Please report any issues. Will try to fix them ASAP. I hope to make this app fully android P compatible until my Onewheel arrives.

kwatkins commented 6 years ago

@audkar good stuff. i'll try and test this w/ my OW+ soon/today (XR is in the shop). If it works as expected, we can merge to master. Edit - moving to master, makes this easier to test.