On Fri, Nov 4, 2011 at 3:30 AM, Doug <[email protected]> wrote:
> On Nov 2, 8:54 pm, Miles <[email protected]> wrote:
>> So is there a way to hook event listeners for lifecycle events?
>
> Not really.  You can write your own subclass of Activity that accepts
> a listener for events and hook it all up yourself.  Then you can have
> all your actual activities that need lifecycle callbacks subclass that
> instead of Activity directly.  There also may be some frameworks that
> do this for you, but you won't get it from Android directly.
>

I'm thinking you just override the activity calls for the events shown here:
http://developer.android.com/reference/android/app/Activity.html#ActivityLifecycle


-- 
John F. Davis

独树一帜

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

Reply via email to