[android-developers] PendingIntent getService

2012-04-17 Thread ndiiie 90
Hi all,


according to here:
http://developer.android.com/reference/android/app/PendingIntent.html#getService%28android.content.Context,%20int,%20android.content.Intent,%20int%29

Retrieve a PendingIntent that will start a service, like calling
Context.startService()http://developer.android.com/reference/android/content/Context.html#startService%28android.content.Intent%29

However, i am doubt. Must we stop the service? If yes, how to do it?


Thanks

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] PendingIntent getService

2012-04-17 Thread Mark Murphy
On Tue, Apr 17, 2012 at 5:59 AM, ndiiie 90 rnd...@gmail.com wrote:
 according to here:
 http://developer.android.com/reference/android/app/PendingIntent.html#getService%28android.content.Context,%20int,%20android.content.Intent,%20int%29

 Retrieve a PendingIntent that will start a service, like calling
 Context.startService()

 However, i am doubt. Must we stop the service?

Something must stop the service.

 If yes, how to do it?

Typically, I find that a getService() PendingIntent is used with
IntentService, which automatically shuts down when it is done
processing the delivered command.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android App Developer Books: http://commonsware.com/books

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en