我正在查看我的崩溃日志,发现出现了“未能及时恢复”的错误。
Application Specific Information:
com.myApp.MyApp failed to resume in time
elapsed total CPU time (seconds): 0.680 (user 0.350, system 0.330), 7% CPU
elapsed application CPU time (seconds): 0.130, 1% CPU
如何及时恢复?
我正在查看我的崩溃日志,发现出现了“未能及时恢复”的错误。
Application Specific Information:
com.myApp.MyApp failed to resume in time
elapsed total CPU time (seconds): 0.680 (user 0.350, system 0.330), 7% CPU
elapsed application CPU time (seconds): 0.130, 1% CPU
如何及时恢复?
我认为这个错误意味着您正在主线程上进行的某些操作需要太长时间。手机变得无响应,操作系统杀死了您的应用程序。
如果可能,尝试使用异步API,或在后台线程中运行长时间运行的任务。