the android develops an activity stack as u keep calling activities. wen
finish() is called, the activity is not stored in the stack... so u need to
call both: a.this.finish() after u start b.java and then to go bach to the
home screen, call b.this.finish().
hope this helps.
cheers!

On Fri, Jul 24, 2009 at 2:43 PM, tstanly <tsai.sta...@gmail.com> wrote:

>
> hi all,
>
> what's command can back to home screen or destop screen?
> eg:
>
> a.java have a button can link to b.java,
> and b have a button can back to home/destop,
>
> is by finish()?
> should
> a.this.finish()
> or
> b.this.finish()?
> or both needed?
>
> if it can work possible?
>
>
> thank you!
> >
>

--~--~---------~--~----~------------~-------~--~----~
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-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to