我使用ActivityGroup来实现TAB UI,并且一个Tab内容是Android设置视图,
我使用了以下方法将其嵌入:
它可以在Android 2.3.3中正常工作,但现在我必须升级到Android 4.0, 不幸的是,它不起作用,并显示以下异常信息: 05-13 07:02:36.242: E/AndroidRuntime(1118): java.lang.RuntimeException: Unable to resume activity {com.android.settings/com.android.settings.Settings}: java.lang.SecurityException: Given caller package com.android.settings is not running in process ProcessRecord{414674b0 1118:com.gul.desktop/10040}
请问各位如何解决这个问题?“ProcessRecord”是什么意思?
final Intent settings = new Intent(android.provider.Settings.ACTION_SETTINGS);
settings.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
Window subActivity = getLocalActivityManager().startActivity("SubActivity_Settings", settings);
vSettings = subActivity.getDecorView();
它可以在Android 2.3.3中正常工作,但现在我必须升级到Android 4.0, 不幸的是,它不起作用,并显示以下异常信息: 05-13 07:02:36.242: E/AndroidRuntime(1118): java.lang.RuntimeException: Unable to resume activity {com.android.settings/com.android.settings.Settings}: java.lang.SecurityException: Given caller package com.android.settings is not running in process ProcessRecord{414674b0 1118:com.gul.desktop/10040}
请问各位如何解决这个问题?“ProcessRecord”是什么意思?