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" <[email protected]> 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 [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