On Tue, Mar 29, 2011 at 12:58 PM, sdphil <[email protected]> wrote:

> public void onCreate() {
>    ....
>    ....
>    if (condition is true)
>        showDialog(42);
>    ....
> }
>

Change to:

public void onCreate(Bundle bundle)
{
   ....
   //  bundle is null on first start, non-null on restart
   if (condition is true && bundle == null)
       showDialog(42);
   ....
}

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