ListView - addFooterView()方法上的无关安全性异常

时间:2014-09-22 14:32:06

标签: android listview securityexception

我正在尝试在Android中为ListView添加页脚视图,然后我跟着this回答,但无论我尝试添加该行的那一刻:

poiLv.addFooterView(loadMore);

活动因安全例外而失败:

09-22 17:21:53.761: E/DatabaseUtils(3029): 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
09-22 17:21:53.761: E/DatabaseUtils(3029):  at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:14610)
09-22 17:21:53.761: E/DatabaseUtils(3029):  at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:2258)
09-22 17:21:53.761: E/DatabaseUtils(3029):  at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:663)
09-22 17:21:53.761: E/DatabaseUtils(3029):  at android.content.ContentProvider$Transport.call(ContentProvider.java:325)
09-22 17:21:53.761: E/DatabaseUtils(3029):  at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:275)
09-22 17:21:53.761: E/DatabaseUtils(3029):  at android.os.Binder.execTransact(Binder.java:404)
09-22 17:21:53.761: E/DatabaseUtils(3029):  at dalvik.system.NativeStart.run(Native Method)

我尝试在setAdapter()之后,或者根本没有适配器添加页脚,但它没有任何区别。我尝试了不同的布局格式,包括:Button,TextView,EditText但不成功。有没有人遇到与页脚视图类似的问题?

我在Samsung S4设备上测试,Android 4.4.2

0 个答案:

没有答案