Tuesday, April 17, 2012

Re: [android-developers] PendingIntent getService

On Tue, Apr 17, 2012 at 5:59 AM, ndiiie 90 <rndyon@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate