I am trying to modify this script to check of com.facebook.katana is running and do the same for Facebook, but I am not sure how to check if that service is running.
i did it for some of those apps that have the tendency to stay in the background even you force close it.
you can check if it's running by going to Setting -> application -> running service
you can also check what apps are occupying your resource with an app called "Betterbatterystat"
|Thread Tools||Search this Thread|