>                        case R.id.bBack:
>                              *  b2.setOnClickListener(new
> View.OnClickListener() {public void
> onClick(View v)
>                                {*



> *final Intent i = new Intent(Sharqyh.this,
> mainActivity.class); startActivity(i);*



> *}});*
>                                finish();
>                                break;
>


You need not have to use the above code, which I marked in bold.

Just calling finish() on button click is enough.

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