HI friends,
I have a Tab activity, in it i have an activity group in it there are 3
activities.
The first and second activities contain custom listviews which dont extend
list activity, the third activity is a normal activity .
On press of a button in third activity the app closes.
I have overridden the onKeyDown method which is :
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
System.out.println("INSIDE ONKEY DOWN");
if (event.getKeyCode() == KeyEvent.KEYCODE_BACK&&EPGGroup.group!=
null) {
System.out.println("back button of showdetail activity");
EPGGroup.group.back();
return true;
}
return super.onKeyDown(keyCode, event);
}
EPGGroup is the activity group.
The problem is onKeyDown is not called at all when i press back button
--
Regards,
Vani Reddy
--
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