[英]Android 6 permission - Crashes when toggling permission in Setting and go back to app
The app is running with Marshmallow. 该应用程序与棉花糖一起运行。 With the app open, I switched to " Setting>Apps>MyApp>Permissions " to toggle the permissions and when switching back to the app, it crashes.
打开应用程序后,我切换到“ 设置>应用程序> MyApp>权限 ”来切换权限,当切换回应用程序时,它会崩溃。 From the logcat, I found these lines:
从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
What do those WIN DEATH in the logcat mean? logcat中的那些WIN DEATH是什么意思? Is Android OS killing my app?
Android OS是否正在杀死我的应用程序?
In my case I solved it by remove custom progress bar. 就我而言,我通过删除自定义进度栏解决了该问题。 It loaded when fragment start, but after restore from background and switch permissions it crashed on progressbar.dismiss()
它在片段开始时加载,但是从后台还原并切换权限后,它在progressbar.dismiss()上崩溃了
PS custom progressbar: SVProgressHUD PS自定义进度栏:SVProgressHUD
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.