[mono-android] Get a notification after a new photo / video was shot?

Jonathan Pryor jonp at xamarin.com
Wed Jun 6 18:24:45 UTC 2012


On Jun 6, 2012, at 5:17 AM, moelski wrote:
> If i start the app all works fine. But if I click the Start button the service creats, the "mover" instance is created, the service starts, the OnHandle Event is fored and the service will be *destroyed*. 
> 
> Can anyone give me a hint why this happens? There is a working instance of my mover class. So why will it be destroyed?

May I refer you to the IntentService Java documentation...

	http://developer.android.com/reference/android/app/IntentService.html

	"the service is started as needed, handles each Intent in turn using a worker thread, and stops itself when it runs out of work."

Your Service is destroyed because you ran out of work, and IntentService is stopping itself (i.e. your service).

If you don't want your Service to be destroyed, don't subclass IntentService.

 - Jon



More information about the Monodroid mailing list