please check your methods inside  activity that extends Activity
group  for onBack button press..

On May 18, 2:32 pm, ceuur <[email protected]> wrote:
> Hi everyone;
>
> I have 3 tabs in activity group.
> In Eachtab(Separate Activity group) there are around 4 activities and
> I'm switching between the activities without any problem.
> My problem is with the device Emulator device back button.
> while i am in an sub-activity (for ex. 2nd activity) if i push back
> button, the application is finished. I override backKeyPress() method
> to start previus sub-activity.
>
> Method code:
>
> @Override
>                 public boolean onKeyDown(int keyCode, KeyEvent event) {
>                         if (keyCode == KeyEvent.KEYCODE_BACK) {
>                         Intent intent = new Intent(Activity3.this, 
> Activity2.class);
>                                 startActivity(intent);
>                     return true;
>                 }
>                 return super.onKeyDown(keyCode, event);
>             }
> i am sorry, mey english's not enough.
>
> Please help me! I have not solved this problem for 3 weeks.
>
> Thanks

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