0

Simple question: How do I let eclipse/my app forget the previous layout?

More specific: I would like my android app not to go back to the original or 'home' layout when pressing back after it went in fullscreen mode. Instead, it should close the app or just do nothing.

I hope the answer is simple too, there must be some code to block this?

thanks

4

1 回答 1

0
 @Override
 public boolean onKeyDown(int keyCode, KeyEvent event)  {
   if (keyCode == KeyEvent.KEYCODE_BACK) {

  //do whatever you want here

}}
于 2013-01-08T15:36:45.133 回答