android 6.0+ java.lang.IllegalStateException did not call finish() prior to onResume() completing
来源:互联网 发布:matlab破解软件 编辑:程序博客网 时间:2024/05/18 10:22
解决方法:
1、更换该activity主题:
将:android:theme="@android:style/Theme.NoDisplay"
更改为 :android:theme="@android:style/Theme.Translucent.NoTitleBar"/>
2、在生命周期onResume()方法之前,调用finish()方法
个人填的一个坑,在onCreate()方法中处理完逻辑后,调用finish(),依然报错,搞到最后,发现onCreate用的是两个参数的那个,根本就不走,坑人啊!
3、在onResume()之前设置 setVisible(true)
不过就显示黑屏了,最后选择第二种解决方法。
阅读全文
0 0
- android 6.0+ java.lang.IllegalStateException did not call finish() prior to onResume() completing
- Activity did not call finish() prior to onResume() completing原因和解决办法
- 微信支付问题:WeChatNotifyActivity} did not call finish() prior to onResume() completing
- 安卓6.0以上机型微信登录时提示Activity did not call finish() prior to onResume() completing
- "did not call through to super.onResume"问题解决
- java.lang.IllegalStateException: Did you forget to call 'public void setup(LocalActivityManager acti
- linux sonar启动 java.lang.IllegalStateException: Webapp did not start
- java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking
- java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before
- java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receiv
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receiv
- java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
- Thinkphp模板引擎(疑问)
- Underscore.js 中 _.throttle 和 _.debounce 的差异
- Android 开源框架Universal-Image-Loader完全解析(一)--- 基本介绍及使用
- 【转】Spring+Netty+Protostuff+ZooKeeper实现轻量级RPC服务(二)
- *(网络流)费用流复习~
- android 6.0+ java.lang.IllegalStateException did not call finish() prior to onResume() completing
- Javascript值类型和引用类型
- html5添加背景音乐
- Python 装饰器使用
- 数据分析的5层解读,报表仍是有效的落地实践!
- Azkaban的AJAX的RestFul接口调用事例
- 前端知识图谱_你值得收藏
- 【备忘】李炎恢老师HTML5+CSS3教程与课件代码【共享完毕】下载
- Centos7下安装qt5.8.0 静态编译库