[英]Is it possible that onPause() gets called if onResume() hasn't been called before?
I register receiver in onResume()
and unregister it in onPause()
method. 我在
onResume()
注册接收者,并在onPause()
方法中注销它。 I can strange error in my Crashlytics reports: 我可以在我的Crashlytics报告中发现错误:
Fatal Exception: java.lang.RuntimeException
Unable to pause activity {package-here}: java.lang.IllegalArgumentException: Receiver not registered:
Caused by java.lang.IllegalArgumentException
Receiver not registered:
It happened 3 times (3 users) on 20k installs. 在20k安装中发生了3次(3个用户)。
Is it possible that onPause() gets called if onResume() hasn't been called before? 如果以前没有调用过onResume(),是否有可能调用过onPause()? I thought it isn't.
我以为不是。
如果是三星设备,则可以,可能是: https : //issuetracker.google.com/issues/37001269#c3
如果您过于频繁地打开和关闭应用程序(在1秒内多次),它将发生
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.