On Wed, Sep 15, 2010 at 5:41 AM, Mystique <[email protected]> wrote:

> If I have onCreate, when app start it will launch onCreate and then
> onResume immediately.
>

Right.


>  So, I can just get ride of onCreate in this case?
>

Depends - are you doing anything in onCreate? Remember that will get called
once, the first time your activity is initialized. onResume will get called
multiple times, each time your Activity is hidden and then re-shown.

So it's up to you to put your logic where it makes sense - the one time
create or the possibly-multiple resume call.

-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices

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