Sunday, March 13, 2011

Re: [android-developers] Re: Activity lifecycle... still a mystery to me

13.03.2011 10:29, Indicator Veritatis пишет:
>>> > > I want to perform certain actions when the BACK or HOME keys are
>>> > > pressed, and ignore cases where a third-party activity simply pops up
>>> > > on part of the screen and then goes away.
>> >
>> > If you find yourself needing this, perhaps you need a Service.
> Why a Service? Services are meant for either 1) long-running
> operations in the background, operations that do not need UI or 2)
> exposing this component's functionality to other components, using
> IBinder if the latter are in other applications.

Because he's trying to determine when the user "really" leaves his
activity vs. when it's temporarily occluded. This is most likely to
either continue or stop doing something. I'm speculating, but it seems
likely.

> An oath he should take seriously.

He asked for a response that could be "vouched for" - and since I can't
sign in blood using email, that was the best I could do :)

> Let's hope he hasn't heard the
> famous Turgenev quote, "каждый Русский -- неисправаемый лгун";)

Turgenev was Russian, too, so that's just like "All Cretans are liars" :)

--
Kostya Vasilyev -- http://kmansoft.wordpress.com

--
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

No comments:

Post a Comment