Monday, May 10, 2010

[android-developers] Having a back button functioning like the emulators

Hi all

I have 3 activities

1: Welcome screen

2:List of country

3:Details abt that country

Now i want to from activity 3 to 2

Currently wat im doing is

 Intent i = new Intent(getApplicationContext(), selectcountry.class);
 startActivity(i);

This way the onCreate methode of 2nd activity is called ... and the whole list is populated again ... 

But the back button of emulated function differently ...

wat code should i write to make my back button behave like the emulators ...




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

No comments:

Post a Comment