IntelliJ Java IDE
The moose likes Android and the fly likes Application Help Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply Bookmark "Application Help" Watch "Application Help" New topic
Author

Application Help

Alex Vandusen
Greenhorn

Joined: Jun 14, 2011
Posts: 13
I am making an application using eclipse and im not sure how to handle this. I want my app to have multiple screens. Should i design them all separately or is there another way.

When the user clicks the button i want it to send him to the next screen but i want it to be a whole different screen. Also how would i include a back button that brings it to the previous screen.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 4875

That is what Intents and Activities are for - see this: http://developer.android.com/guide/topics/fundamentals/activities.html


JBoss In Action
Pranav Raulkar
Ranch Hand

Joined: Apr 20, 2011
Posts: 73

You can create an activity each representing the different screens. Then use intents to switch from one activity to another. Going back to previous activity requires almost no code as the back button on the phone does that. All the activities that you open are maintained on a Stack and when back button on phone is pressed the android os pushes them back in
 
IntelliJ Java IDE
 
subject: Application Help
 
Threads others viewed
Resizing JRadioButton
How to design ?
How to show image in jsp from any where using browse button?
Swing Doubt !!!!!
awt classes
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture