Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是安卓新手。我正在使用使用 Intent.its 的浏览器工作正常,但是当我单击设备应用程序退出上的后退按钮时遇到问题。单击后退按钮时如何转到上一个应用程序?
尝试这个:
@Override public void onBackPressed() { super.onBackPressed(); Intent signup_intent = new Intent(ActivityB.this, ActivityA.class); startActivity(signup_intent); }
//onClick ActivityB 中的 Back 按钮把它带到 ActivityA