openbmap / radiocells-scanner-android

WLAN and cell tower scanner for Radiocells.org
https://www.radiocells.org
Other
55 stars 26 forks source link

Service keeps running in the background, even when I stop the app #176

Open ReyhanJB opened 7 years ago

ReyhanJB commented 7 years ago

What steps will reproduce the problem? Open the app. Start a new scanning session. Switch to another app. Remove RadioBeacon from the recent app (stop the app).

What is the expected output? What do you see instead? I expect by removing the app from recent list, it stops. However, the RadioBeacon icon will stay in the notification bar which indicates the app is running and scanning.

What version are you using? On what operating system? Latest version running on Nexus 5x with Android Marshmallow.

Please provide any additional information below. The problem here is that the service keeps running in the background, but does not update the session with new information. So it consumes the resources of the device without any utilization. In the logcat, I can see that "doUnbindService()" is called when the app is destroyed. This should stop the "MasterBrainService". However, I was not able to find the root cause of this issue that I'm reporting.

wish7code commented 7 years ago

This is possibly related with #178