Android onBackPressed()重写失效

@Override

public void onBackPressed() {
// TODO Auto-generated method stub
super.onBackPressed();
}

重写时应该去掉 super.onBackPressed(); 否则会默认执行退出动作

转载于:https://www.cnblogs.com/zhjoylive/p/4744245.html

你可能感兴趣的:(Android onBackPressed()重写失效)