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

> On Mon, May 10, 2010 at 11:24 AM, pawan nimje <[email protected]>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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> 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 [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