New to android... Adding pages.

Put your problem here if it does not fit any of the other categories.

New to android... Adding pages.

Postby DevStomp » Fri Feb 04, 2011 2:38 pm

Hi everyone,

I'm new to Developing on android and java, and also a new member to anddev.org but I've been peeking around for a few days. However, I'm currently making a pretty simple application just to get used to the way things work.

However... The app I'm making needs multiple pages, one for main menu, one for help etc etc. If anyone could help me out I'd greatly appreciate it :)

Thanks a bunch.
DevStomp
Freshman
Freshman
 
Posts: 3
Joined: Fri Feb 04, 2011 2:32 pm

Top

Re: New to android... Adding pages.

Postby DevStomp » Fri Feb 04, 2011 6:27 pm

Could anyone help me on this?
DevStomp
Freshman
Freshman
 
Posts: 3
Joined: Fri Feb 04, 2011 2:32 pm

Re: New to android... Adding pages.

Postby strider2023 » Mon Feb 28, 2011 1:41 pm

Hi,

Try using different activities one for main, one for help etc. You can jump from one activity to the other by using intents. For example,

Intent HomePageIntent = new Intent(MainMenu.this,HelpMenu.class);
startActivity(HomePageIntent);

Pls feel free to ask if you have any doubts.
Happy Coding!
strider2023
Senior Developer
Senior Developer
 
Posts: 126
Joined: Tue Mar 02, 2010 6:34 am
Location: Chennai, India

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 16 guests