• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Few general questions when it comes to adding pages

Hello,

I'm slowly getting use to Android development (early days yet) I have a few question regarding pages, is a page in eclipse classed as an Activity?

If the above is correct then how would I go about linking and by that i mean the following

In asp.net (as that's my background) I would use a
<a href="Go to some other page">click me to be taken to another page</a>

how would i do it in android i have three pages page 1,2 and 3 each page has a button you push the button on page one and it will take you to page 2 etc ?

This is what I have in my mind at the moment.

1, Create a new Activity (which lives inside the layout folder)

2, Create a new class (.java) which refers to the new activity you just created and inside that you have a onCreate method which inside there you can determin which activity (layout) you want to use by doing the following setContentView(R.layout.activity_pagename);

3, To go from one page to another I'm guessing you use Intent?
 
Back
Top Bottom