Tushar Tushar - 1 month ago 17
Android Question

Start Activity on DeviceAdminDisable Request

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";
}

Answer

After lots of searching I got this Answer It is not possible in Android 4.1.2