9

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.

Techboy
  • 4,286
  • 5
  • 36
  • 45
UMAR-MOBITSOLUTIONS
  • 77,236
  • 95
  • 209
  • 278
  • Umma put more appropriate tags for more viewers who have ability to answer you, who search Questions by tag. Tag: android would have brought you more answers. – Sumit M Asok Jan 20 '10 at 18:04
  • This is a good and easy way to add activities to your project http://stackoverflow.com/questions/2337874/best-way-to-add-activity-to-an-android-project-in-eclipse – gsb May 24 '12 at 22:21

4 Answers4

8

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.

Marcin Gil
  • 68,043
  • 8
  • 59
  • 60
2

create an Intent and pass the intent to startactivty method. ake sure your activity should be defined in manifest file

Arun
  • 1,658
  • 1
  • 14
  • 21
0

Read about Intents

intents are used to start new activity

Activity is the super class that represents each of your view corresponding to your layout

in Professional Android App Dev- WROX by Retro Meier gives good examples for this in a chapter for Intents and Broadcast.

Sumit M Asok
  • 2,950
  • 7
  • 29
  • 38