{"id":6955,"date":"2014-05-16T01:11:53","date_gmt":"2014-05-16T01:11:53","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/16\/how-can-i-stop-the-service-of-another-app-in-android-collection-of-common-programming-errors\/"},"modified":"2014-05-16T01:11:53","modified_gmt":"2014-05-16T01:11:53","slug":"how-can-i-stop-the-service-of-another-app-in-android-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/16\/how-can-i-stop-the-service-of-another-app-in-android-collection-of-common-programming-errors\/","title":{"rendered":"How can I stop the service of another app in Android?-Collection of common programming errors"},"content":{"rendered":"<p>On my device runs a service in an app (its not my app and I cannot uninstall it and my device is not rooted) that is always draining power. I can stop that service in my devices application settings but is there a way to stop it programatically, so I don&#8217;t have to do that manually all the time ?<\/p>\n<p>Could maybe something like <b>stopService(&#8230;);<\/b> work ?<\/p>\n<p>Is there maybe a way to change the scheduler to prevent the restarts of the service ?<\/p>\n<pre><code>\"W\/ActivityManager(178): Scheduling restart of crashed service xxxx in 5000ms\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>On my device runs a service in an app (its not my app and I cannot uninstall it and my device is not rooted) that is always draining power. I can stop that service in my devices application settings but is there a way to stop it programatically, so I don&#8217;t have to do that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6955","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6955","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6955"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6955\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}