3

I am trying to start new Activity on onDisableRequested of DeviceAdminReceiver in Android 4.1.2 But It takes much time to start new Activity and my app is no more DeviceAdmin I am Using following Code .I want that my Activity will start first than "onDisableRequested" msg

   public CharSequence onDisableRequested(Context context, Intent intent) {
   Intent LaunchIntent = new Intent(context,InformationActivity.class);
        LaunchIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(LaunchIntent);
    return "onDisableRequested";
}
4

1 回答 1

0

经过大量搜索后,我得到了这个答案在 Android 4.1.2 中是不可能的

于 2013-09-24T06:46:54.027 回答