i have a background service on my android APP that is getting my GPS position and sending it to a remote db. It work\'s fine.
The problem is when i want to stop the
my problem solved by removing the added views to WindowManager ondestroy
WindowManager
ondestroy
public void onDestroy() { isRunning = false; super.onDestroy(); if (checkBox!=null) { windowManager.removeView(getlayoutparm(fabsetting,fabrateus,fabexit,true)); windowManager.removeView(checkBox); } }