After lots of searching I got this Answer It is not possible in Android 4.1.2
Start Activity on DeviceAdminDisable Request
-
30-05-2022 - |
Vra
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";
}
Oplossing
Gelisensieer onder: CC-BY-SA met toeskrywing
Nie verbonde aan StackOverflow