Android - What started my service? <p>I have a service that I use to upload selected files while the user is off doing other things. It starts when my application tells it to, and it stops when my app tells it to. But for some reason I get my service starting notification at seemingly random times when using other apps. Is there a way to determine what told my service to start?</p> <p>It is standard service in that it extends Service, and is bound to my UploadScreenActivity.</p> <p>The onCreate is pretty simple:</p> <pre><code>public void onCreate() { instance = this; if(connectivityManager == null){ connectivityManager = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE); } mNM = (NotificationManager)getSystemService(NOTIFICATION_SERVICE); Toast.makeText(this, "Service started", Toast.LENGTH_SHORT).show(); } </code></pre> <p>And that 'service started' notification appears at seemingly random times while navigating other applications.</p> <p>The code for my service is based off of the local service sample in the Service doc: <a href="http://developer.android.com/reference/android/app/Service.html" rel="nofollow">http://developer.android.com/reference/android/app/Service.html</a></p>