Proper way of coding
I am new in developing android applications. I want to create an android application(using eclipse) which needs a login page where the user needs to put his/her username and password and when the username and password is correct the application will open the main page. I already made a layout for the login page. My question is, is it proper to put the function codes of login and main page in the same package?
Ideally you would define a Login Activity which handles all the Login action, save it in preferences etc and then have it start the MAIN activity when the user is logged in.