我想调用onDestroy()
方法而不调用onCreate()
方法之外的其他生命周期方法。
You need to call finish()
in your onCreate()
method
Call this when your
activity
is done and should be closed. TheActivityResult
is propagated back to whoever launched you viaonActivityResult()
.
你必须在onCreate()
调用finish()
onCreate()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.