I have 2 Activity files. 1 activity is for Setup and other is for main.
In one Activity I have a code to show phone number device so if user has ever setup he will forward in second activity .
I Need to start with Setup Activity.
Can you tell me , how to make it?
Start your application with the Setup Activity. Define SharedPreferences to check if the user has already entered the email or not. If there is no email present, ask the user for the email and store it in the SharedPreferences and proceed to the next Activity.
Next time when the application is started, you will find the email in the SharedPreference string variable and hence go to the next activity directly.
Something like this :