i have 3 activity (form 1 ,2 ,3 )
and after the user fill the form 3 and send it, i wanna delete the information from the activity (1 & 2 & 3 ) but AFTER SEND IT IN ACTIVITY 3
(i mean if the user after send it then click back i do not wanna him to find his information in form 1 & 2 & 3
.Intent intent = new Intent(getApplicationContext(), Home.class);
intent.addFlags(FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
does this let my 1 & 2 & 3 activity with no user data when he click back after activity 3 ?
can you please help me?
===================Edit===============
someone told me this but i do not get it , can you please help me how can do it
pass a reference to the previous forms in the last one and call clear on any element
Thank you all
Do try this..
In your last sending activity,if you want to start another activity or existing activity, then add this
which will clear all the activities in your previous activity stack