Jelmerholland
Lurker
Dear developers,
I have a question about the hierarchy of Android.
I have the following structure:
Now, you have a list (depending on which button you pressed) everything works fine. That's not the problem. Now, when you press on a listitem (instrument) you get a detailed 'information package' of it. Off course you can go 'back'.
so: SplashScreen > Menu > InstrumentList > Instrument
and when you go back: Instrument > InstrumentList
and even further: InstrumentList > Menu
What I want to do is finish() the InstrumentList activity when you go back to Menu. But I don't want it to be finish()'ed when you go to to Instrument.
So when do I have to use the finish() function? In the onPause() part? No, because when you are in InstrumentList and go to Instrument, the InstrumentList is finish()'ed. And I don't want that.
So my question is, when you go back to the parent activity (Menu), is the child (InstrumentList) automatically finish()'ed? Or do I have to do this manually? The problem is that I don't want to have 20 activities open by accident (in child>child>child activities)
I hope that you guys understand what I want and that you can attempt to help me.
Kind regards, Jelmer
I have a question about the hierarchy of Android.
I have the following structure:
- SplashScreen.java (LAUNCHER)
- Menu.java (DEFAULT)
- InstrumentList.java (DEFAULT)
- Instrument.java (DEFAULT)
- InstrumentList.java (DEFAULT)
- Menu.java (DEFAULT)
Now, you have a list (depending on which button you pressed) everything works fine. That's not the problem. Now, when you press on a listitem (instrument) you get a detailed 'information package' of it. Off course you can go 'back'.
so: SplashScreen > Menu > InstrumentList > Instrument
and when you go back: Instrument > InstrumentList
and even further: InstrumentList > Menu
What I want to do is finish() the InstrumentList activity when you go back to Menu. But I don't want it to be finish()'ed when you go to to Instrument.
So when do I have to use the finish() function? In the onPause() part? No, because when you are in InstrumentList and go to Instrument, the InstrumentList is finish()'ed. And I don't want that.
So my question is, when you go back to the parent activity (Menu), is the child (InstrumentList) automatically finish()'ed? Or do I have to do this manually? The problem is that I don't want to have 20 activities open by accident (in child>child>child activities)
I hope that you guys understand what I want and that you can attempt to help me.
Kind regards, Jelmer
