Activity did not call finish() prior to onResume() completing原因和解决办法
来源:互联网 发布:java发送邮件 多邮箱 编辑:程序博客网 时间:2024/05/18 08:24
最近发现一个针对6.0 Activity使用Theme.NoDisplay style 时候爆出这个log, Google的处理方式是直接fatal crash,很蛋疼。 log里面给出了解决方法,在onResume方法之前要调用finish,确实调用了没问题了,但是不知道原因,最后还是在StackOverflow 查到了。
我大体翻译一下:如果在6.0手机上你的Activity主题使用了NoDisplay 的话,正常resume的话会出现ANR,因为你activity启动了但是window显示不出来,系统等待超过5s自然ANR了,这种体验很不好,所以google直接就一言不合抛异常,建议我们使用Theme.Trunslucent.NoTitleBar,如果你想让这个activity完全透明!最后附上StackOverflow的问题地址https://stackoverflow.com/questions/41687810/android-6-0-unable-to-resume-activity-did-not-call-finish-prior-to-onresume
阅读全文
1 0
- Activity did not call finish() prior to onResume() completing原因和解决办法
- 安卓6.0以上机型微信登录时提示Activity did not call finish() prior to onResume() completing
- android 6.0+ java.lang.IllegalStateException did not call finish() prior to onResume() completing
- 微信支付问题:WeChatNotifyActivity} did not call finish() prior to onResume() completing
- "did not call through to super.onResume"问题解决
- android.app.SuperNotCalledException: Activity {} did not call through to super.onDestory() 解决办法
- Unable to destroy activity did not call through to super.onDestroy()
- did not call through to super.onCreate()
- did not call through to super.onDestroy()
- android.app.SuperNotCalledException: Activity {} did not call through to super.onPause()
- android.util.SuperNotCalledException: Activity did not call through to super.onDestroy()异常的解决
- 抛出Activity did not call through to super.onDestroy()的解决方案
- android.app.SuperNotCalledException: Activity {} did not call through to super.onDestory()
- 【Android】An activity without a UI must call finish() before onResume() complete
- SuperNotCalledException did not call through to supper onCreate();
- AndroidRuntime: did not call through to super.onCreate()
- 解决did not call through to super.onDestroy()
- grade中在线添加依赖无效不下载的问题和.MainActivity did not call through to super.onCreate()
- iOS自动打开闪光灯
- 动态规划--二维费用背包--最大最小价值--hdu4968 Improving the GPA
- ListView setOnItemClickListener无效原因分析
- HANA 存储过程 基础篇
- HDU1005Number Sequence
- Activity did not call finish() prior to onResume() completing原因和解决办法
- Vue(2) : Vue for Gank.io
- 算法系列—— Find Peak Element
- 调用WebService接口的方法
- Apache HttpClient 资源释放、请求超时,导致线程池用光、内存不足
- thinkphp网站支付宝异步回调验签失败问题,发现一个原因点
- Android绘图基础--Surface创建及初始化
- Xamarin for Visual Studio v4.6发布,重新设计属性页和Manifest编辑器
- 各种加密解密函数(URL加密解密、sha1加密解密、des加密解密)