I am new to android development. In my project there is case that I have to dynamically change first displaying form depending on a condition. Depending on a database entry I want change the first displaying form.If user is valid then i want to show home screen,otherwise login form should be displayed.Authentication is based on local app database entry.How can i achieve this?.Where i have to put this condition and navigate to another Form?
Share
I would suggest you to place the Splash screen activity with Progress bar.
In background, you can check whether the user is valid or not.
If user is valid, then start Home screen.
else start Login screen.
For example:
In this example, HomeActivity and LoginActivity are the activity.