• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Application Help

 
Alex Vandusen
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is what Intents and Activities are for - see this: http://developer.android.com/guide/topics/fundamentals/activities.html
 
Pranav Raulkar
Ranch Hand
Posts: 73
Android Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic