Android Question Closing a layout from a different activity

rleiman

Well-Known Member
Licensed User
Longtime User
Hi Everyone,

In an app there is a main menu. The user taps a button on that menu and I load a layout onto the main activity that shows an hourglass then start another activity.

When the new activity starts, it loads another layout. Now I have 3 layers of layouts (the main layout, the hourglass layout and now the layout from the new activity).

In the new activity is a close button that calls: Activity.Finish to close it. Once that activity is closed the hourglass from the main activity is still showing because it's the 2nd layer. I would like to close this prior to exiting the new activity or closing it prior to calling the new activity.

Can this be done? Please show coding samples if it can be done.

Thanks.
 
Back
Top