1. use startActivityForResult() and in sample2 call finish() then in
sample1-activityForResult() call finish()  or
2. use startActivity() and in sample2 intent, assign some boolean
value and pass to sample1, get the boolean value and acoording to that
call finish() in sample1..

Nithin

On Feb 11, 11:22 am, "Sasikumar.S" <sasikumar.it1...@gmail.com> wrote:
> Hi,
>
> In my program i'm using 3 activities.
>
> How to close 2 activities at a time?..
>
> Ex:-
>
> sample1.java
> sample2.java
> sample3.java
> Now i'm in Sample2.java I need to close Sample1.java & sample2.java
>
> --
> Thanks & Regards
> Sasikumar.S

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