I wanna to be able to execute some code (logic) as soon the application starts before any Intent starts. For example..I wanna to decide which of a list of Intents should start. Is this possible in Android ? For example.
I have intent Login and intent MainWindow.
If the user is not already logged in I wanna to show the login intent..otherwise the MainWindow.
I wanna to be able to execute some code (logic) as soon the application
Share
Usually this functionality is achived using your Login
Activity. Check inonCreatemethod if user needs authorization, and if not – start MainWindow immediately (andfinish()LoginActivity).