Hi ,
this following code i use it to make Replace view ( VideoStepView )
with other view (VideoViewController)
Intent intent = new Intent(VideoStepView.this,
VideoViewController.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
View view =
HomeActivity.group.getLocalActivityManager().startActivity("VideoViewController",intent
)
.getDecorView();
HomeActivity.group.replaceView(view);
---------------
now i want to handle android backbutton @ ( VideoViewController)
i tried this code to do this
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
super.onKeyDown(keyCode, event);
if(keyCode == KeyEvent.KEYCODE_BACK){
Log.e("Back Video View ", "Done ");
Intent intent = new Intent(VideoViewController.this,
VideoStepView.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
View view =
HomeActivity.group.getLocalActivityManager().startActivity("VideoStepView",intent
)
.getDecorView();
HomeActivity.group.replaceView(view);
}
return true;
}
---------------
but the action of the android backButton not enter this action
??
how to solve this problem ?
--
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