My app consists of 7 activities. For the first time when it has been installed in a device, I want to show all the activities. When the app has been closed and used later, I want a particular activity to be hidden. How to work out this? Please help me. If I have to use onResume
or onStart
, how to implement it?
The first time your application is launched set a boolean values such as isLaunched
to true
using
putBoolean(), and then subsequently, when you launch the app, if getBoolean of isLaunched
is true
, don't show that particular Activity.