Open tofuorz opened 11 years ago
It seems that the back button should not be caught.
2012/9/18 js-go notifications@github.com
in game scene,when press the NATIVE back button,the application was turn off.can I holding the back button? the code for the layer: setIsKeyEnabled(true); @override https://github.com/override public boolean ccKeyDown(int keyCode, KeyEvent event) { // TODO Auto-generated method stub // Log.e("toufu", keyCode + ""); if (keyCode == KeyEvent.KEYCODE_BACK) { CCDirector.sharedDirector().popScene(); return true; } return super.ccKeyDown(keyCode, event); } not useful... please help me.
— Reply to this email directly or view it on GitHubhttps://github.com/ZhouWeikuan/cocos2d/issues/64.
why? when I push a scene A to director,then push another one(scene B),so when I push back button,it seem need to popScene to scene A,not close the app.
in game scene,when press the NATIVE back button,the application was turn off.can I holding the back button? the code for the layer: setIsKeyEnabled(true); @Override public boolean ccKeyDown(int keyCode, KeyEvent event) { // TODO Auto-generated method stub if (keyCode == KeyEvent.KEYCODE_BACK) { CCDirector.sharedDirector().popScene(); return true; } return super.ccKeyDown(keyCode, event); } not useful... please help me.