I'm trying to add persisted activity to intent filter, I am profile owner and device owner and this is verified and I have no security exception but still my activity is not interrupting the call, not sure what to do next ...help please
ComponentName adminComponent = new ComponentName(getApplicationContext(), EnforcerDeviceAdminReceiver.class);
ComponentName handlerComponent = new ComponentName(getApplicationContext(), HandlerActivity.class);
devicePolicyManager.clearPackagePersistentPreferredActivities(adminComponent, getPackageName());
IntentFilter intentFilter = new IntentFilter(INTENT_ACTION);
intentFilter.addCategory(Intent.CATEGORY_DEFAULT);
devicePolicyManager.addPersistentPreferredActivity(adminComponent, intentFilter, handlerComponent);
After adding this I am launching startActivity(new Intent(INTENT_ACTION));
from another application but this is not interrupted by the above activity.