I want to call this activity from a class extending BroadcastReceiver but its not working
Intent i = new Intent(DevicePolicyManager.ACTION_SET_NEW_PASSWORD);
context.startActivity(i);
Is it not possible to start an activity from BroadcastReceiver. Please help.
Try this
yourclass.class is your activity class that you want to start. Also, do not forget to add flags as new task.