/** * Call this when your activity is done and should be closed. The * ActivityResult is propagated back to whoever launched you via * onActivityResult(). * 翻译下:当activity执行完毕并且应该关闭的时候,调用此方法. * 这个ActivityResult马上会返回给调用这个activity的onActivityResult()方法 *…
1. finish()方法概览 首先我们来看一下finish方法的无参版本的定义: /** * Call this when your activity is done and should be closed. The * ActivityResult is propagated back to whoever launched you via * onActivityResult(). */ public void finish() { finish(false); } 根据源码中的注释我们…