On Apr 16, 5:10 am, Greg <[EMAIL PROTECTED]> wrote:
> when i used this code
> this.finish();
> startSubActivity(i, ACTIVITY_CREATE);

As I said before, you want to start the new activity before finishing
the current one.  Otherwise you are first finishing the current one
and, yes, there is a time during which you may see the activity behind
it.

Also there is no reason to use startSubActivity() if the calling
activity is not going to wait around for a result.  The ONLY
difference between startActivity() and startSubActivity() is that the
former allows the started activity to return a result to the caller.

--~--~---------~--~----~------------~-------~--~----~
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
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to