I have an activity which opens using alarm manager.There are some operations can be performed by user in it.On clicking a button ,activity finishes using finish().
My problem is that after being finished,user can still resume the activity using Home button and can repeat the operations that he had performed earlier. How can I stop this?
Please help.
I have used :
Intent i = new Intent(context, Alert.class);
i.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(i);
to start the activity from on receive of alarm manager. and used in menifiest :
android:configChanges="orientation|screenSize"
android:excludeFromRecents="true"
android:launchMode="singleTask"
android:noHistory="true"