Android Question How to disable background service [solved]

Didier9

Well-Known Member
Licensed User
Longtime User
I made the mistake of installing the example in
https://www.b4x.com/android/forum/threads/background-location-tracking.99873/

Even though I removed the program, rebooted the phone, added this code
B4X:
Sub Activity_KeyPress( KeyCode As Int ) As Boolean ' Return True to consume the event
    If KeyCode = 4 Then ' back key
        CancelScheduledService( Me )
        Activity.Finish
    End If
    Return True
End Sub ' Activity_KeyPress()
to hopefully cancel the service before exiting the app, it still comes back after a while.
After exiting the app, the phone is quiet for 5-10 minutes then invariably it starts buzzing again while showing the Tracking Location event.

How can I get rid of this thing?

TIA...
 
Top