2

I'm very very new on Android development.

I have designed two xmls layouts (main.xml and secondpage.xml). I want to go from main.xml to secondpage.xml when the user click on a button.

I've found on android's documentation the following methods:

and more and more methods...

Should may use these methods to navigate throug pages?

Thank you.

VansFannel
  • 45,055
  • 107
  • 359
  • 626

1 Answers1

3

Yes, create a second activity and your secondpage.xml should be its layout. And then switch to the new activity and layout using startActivity or startActivityForResult. See my answer to a previous question here for how to create and call a new activity in Eclipse.

Being a newbie myself I like to help others, and I hope this helps you.

Community
  • 1
  • 1
ShadowGod
  • 7,891
  • 3
  • 28
  • 31