But I can do this on Android 2.3.3, does that means Android 4.0 strengthen the 
Security rules?


Thanks & Best Regards
Lynn Gu
——————————————
MSN: [email protected]
TEL: +86 13501129124
——————————————


From: Dianne Hackborn 
Sent: Monday, May 14, 2012 1:43 AM
To: [email protected] 
Subject: Re: [android-developers] SecurityException: Given caller package 
com.android.settings is not running in process ProcessRecord

You can't embed the activity from one application inside of the activity of 
another, unless they are both running under the same uid (and clearly you are 
not running under the same uid as settings).


On Sun, May 13, 2012 at 12:40 AM, <[email protected]> wrote:

  Hi, 

  I use ActivityGroup for TAB UI, and one Tab content is Android Settings view,
  I used this method to embed into:

      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();

  And it works well in Android 2.3.3, but now I have to move to Android 4.0,
  Unfortunately it doesn't work with the exception like the below:

  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}

  Can buddies tell me how to solve it, and what't the ProcessRecord?


  Thanks & Best Regards
  Lynn Gu
  ——————————————
  MSN: [email protected]
  TEL: +86 13501129124
  ——————————————


  -- 
  You received this message because you are subscribed to the Google
  Groups "Android Developers" group.
  To post to this group, send email to [email protected]
  To unsubscribe from this group, send email to
  mailto:android-developers%[email protected]
  For more options, visit this group at
  http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to 
provide private support, and so won't reply to such e-mails.  All such 
questions should be posted on public forums, where I and others can see and 
answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to