Wednesday, May 19, 2010

Re: [android-developers] Go back to previous screen programmatically

call finish method it will remove the current activity from the stack and u will get the previous one

On Wed, May 19, 2010 at 9:35 PM, dillipk <codersnet2010@gmail.com> wrote:
Hi,
 How do I go to previous screen manually  .. say 'on button click'?
Its similar to imitate the BACK button click.

I used below code but no luck..


startActivity(new Intent(ViewOfferActivity.this,
this.getCallingActivity().getClass()));


Thanks,
DK

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