Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to Open new screen in Android?

i am new to android and i have created a login page after verifing login

i get results true or false on the bases of user authentication now my goal is to show another screen on successful authentication with some new textboxes and button i mean new layout how to achieve this???

any help would be appriciated.

like image 912
UMAR-MOBITSOLUTIONS Avatar asked Feb 04 '23 07:02

UMAR-MOBITSOLUTIONS


1 Answers

You want to start new activity. You can read more on initiating new Activities at Android documentation.

However you might consider making a "normal" application screen and call another Activity for login purposes instead of having a login page and redirection.

So if page/Activity_A requires user to be logged in, you call LoginActivity with startActivityForResult and get true/false if user has properly logged in.

like image 98
Marcin Gil Avatar answered Feb 06 '23 16:02

Marcin Gil