Android:get/set setting for user asks to run as user -2 but is calling from user 0
2017-05-08 14:03
495 查看
异常:
最近项目中遇到了一个手机兼容问题,当项目运行在三星手机(我使用的是Samsung GT-I9158v Android 4.3)后,首次进入后APP能正常运行,但是当点击home键后在点击APP就直接打不开了,查看日志后,也没有看到什么错误信息,但是发现了以下Log信息:
看日志信息后好像是需要添加android.permission.INTERACT_ACROSS_USERS_FULL权限,但是添加后还是会打不开,一直在网上查,不能解决。最后在看清单文件的时候修改几个Acitivity的启动模式后才得以解决。
解决方法:将acitivity的启动模式由singleInstance改为singleTop即可
这样在低版本上的OPPO手机遇到的打不开的问题也解决了,太坑了啊!
java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
最近项目中遇到了一个手机兼容问题,当项目运行在三星手机(我使用的是Samsung GT-I9158v Android 4.3)后,首次进入后APP能正常运行,但是当点击home键后在点击APP就直接打不开了,查看日志后,也没有看到什么错误信息,但是发现了以下Log信息:
看日志信息后好像是需要添加android.permission.INTERACT_ACROSS_USERS_FULL权限,但是添加后还是会打不开,一直在网上查,不能解决。最后在看清单文件的时候修改几个Acitivity的启动模式后才得以解决。
解决方法:将acitivity的启动模式由singleInstance改为singleTop即可
这样在低版本上的OPPO手机遇到的打不开的问题也解决了,太坑了啊!
相关文章推荐
- Permission Denial: null asks to run as user 1771 but is calling from user 0; this requires android.p
- startInstrumentation asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
- asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_
- 华为mate10 Android8.0报错 SecurityException: Permission Denial: null asks to run as user 49 but is calli
- Proxy account failing to run SSIS Error (Proxy (11) is not allowed for subsystem "SSIS" and user "AB\testuser ".
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error
- RunningMapReduceExampleTFIDF - hadoop-clusternet - This document describes how to run the TF-IDF MapReduce example against ascii books. - This project is for those who wants to experiment hadoop as a skunkworks in a small cluster (1-10 nodes) - Google Pro
- RunningMapReduceExampleTFIDF - hadoop-clusternet - This document describes how to run the TF-IDF MapReduce example against ascii books. - This project is for those who wants to experiment hadoop as a skunkworks in a small cluster (1-10 nodes) - Google Pro
- #Redis Error #MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details a
- The user operation is waiting for "Building workspace" to complete--Android开发经验
- System error &H80004015 - This class is configured to run as a security id different from the caller.
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error
- Using Timer to get history values from EDNA database, an error is prompted in the page : "Sys.WebForms.PageRequestManagerTimeout
- [未解决] The username entered must be the same as the database accesss account for the server farm you wish to join.
- How to get a notification from Linux when the set of network interfaces changes
- copy_to_user,copy_from_user,get_user,put_user函数比较
- how to get domain user info from AD in C#
- The installer is unable to run in graphical mode: required operating system packages for Linux
- Linux: Where to set hostname and how to get IP info, as well as how to set DNS
- copy_to_user,copy_from_user,get_user,put_user函数比较