0

Want to create a log_in page in android that will have a login button and on clicking the button it will redirect to another layout . The second layout will have a logout button that will redirect to the first layout. Then if user presses back button in emulator then he will not be redirected to second layout. Will be grateful to see some suggestions or answers. Thank you..

1 Answers1

0

You should try things out first and if they do not work out then you can post your question. Anyway you can create an empty activity, customise the layout as needed then override the onClick() method on the the button to redirect to a second activity. More details here:

Using Intent in an Android application to show another activity

Community
  • 1
  • 1
George Daramouskas
  • 3,720
  • 3
  • 22
  • 51