Monday, May 10, 2010

Re: [android-developers] Go back to previous activity

By 

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

i meant 

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



On Mon, May 10, 2010 at 9:59 PM, TreKing <trekingapp@gmail.com> wrote:
On Mon, May 10, 2010 at 11:24 AM, pawan nimje <pawannimje@gmail.com> wrote:
I want to go back to previous activity
What code should i write for back button

How about finish() ?
 
plz dont suggest

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

I have no idea what ContryContext or selectcountry.class are. Why in the world would anyone suggest that?

-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
http://sites.google.com/site/rezmobileapps/treking

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

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