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.
如何从新类返回调用类,我已经在新类中执行了所有功能,现在我想从调用意图的地方返回?
如果您从另一个 Activity 启动一个 Activity 而不调用finish();初始 Activity,则只需调用finish();第二个 Activity。(注意:这会杀死你的第二个活动)
finish();
调用finish() 或finishActivity();函数返回调用类并完成当前活动。