startupactivity.java is your launcher activity in manifest file.
In your startupactivity.java
1)how to check if already login or not?
->use sharedpreferences to check login or not(store and retrieve sharedpreferences)
->use file to store login data
->use sqlite database to store registration info.
->check if already register then call homescreen.java
or
->if not registered then call registration.java