I'm developing an application in which I have a MainActivity
, on that I have a button which calls Activity1
(the theme of this activity is set to dialog i.e. android:theme="@android:style/Theme.Holo.Light.Dialog
), so I can't finish the MainActivity
, otherwise Activity1
will be on top of home screen.
On my Activity1
, my other activity i.e. Activity2
is called. This is also same as Activity1
with dialog theme. Now from Activity2
I have called Activity3
which is normal activity without dialog theme.
Now, I want to finish my MainActivity
from Activity2
.
How can I achieve that?
Any kind of help will be appreciated.