views:

20

answers:

1

Hello.

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.

+1  A: 

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.

ShadowGod