该应用与Marshmallow一起运行。应用程序打开后,我切换到" 设置>应用> MyApp>权限"切换权限,当切换回应用程序时,它崩溃了。从logcat中,我发现了这些行:
01-18 14:45:35.456 799-1158/? I/ActivityManager? Killing 23531:ca.bluecross.ab.sys1/u0a103 (adj 9): permissions revoked
01-18 14:45:35.476 799-1632/? I/WindowState? **WIN DEATH:** Window{20182a4 u0 ca.bluecross.ab.sys1/myexample.com.view.activities.eclaims.AuditActivity}
01-18 14:45:35.476 799-1600/? D/GraphicsStats? Buffer count: 6
01-18 14:45:35.477 799-894/? W/InputDispatcher? channel 'd9c6d5e myexample.com.sys1/myexample.com.view.activities.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
01-18 14:45:35.477 799-894/? E/InputDispatcher? channel 'd9c6d5e myexample.com.sys1/myexample.com.view.activities.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
01-18 14:45:35.478 799-1160/? I/WindowState? **WIN DEATH:** Window{d9c6d5e u0 myexample.com.sys1/myexample.com.view.activities.MainActivity}
01-18 14:45:35.478 799-1160/? W/InputDispatcher? Attempted to unregister already unregistered input channel 'd9c6d5e myexample.com.sys1/myexample.com.view.activities.MainActivity (server)'
01-18 14:45:35.484 799-1600/? W/ActivityManager? Spurious death for ProcessRecord{5c56227 0:myexample.com.sys1/u0a103}, curProc for 23531: null
logcat中的 WIN DEATH 是什么意思? Android操作系统是否会杀死我的应用?
答案 0 :(得分:0)
就我而言,我通过删除自定义进度栏解决了该问题。它在片段开始时加载,但是从后台还原并切换权限后,它在progressbar.dismiss()上崩溃了
P.S。自定义进度栏:SVProgressHUD