harrisgeo
harrisgeo

Reputation: 515

Changing views/activity in Android

I am a newbie in Android and currently I am designing an application where I have faced a big problem with changing views. I have 3 classes, each one for a different screen. I use a button to change pages but it does not seem to work. Every time I move to the next screen, the variables methods etc of the 2nd screen are located in a different class. Can you please show me the simplest way to do this? Thank you.

Upvotes: 1

Views: 417

Answers (1)

Sadeshkumar Periyasamy
Sadeshkumar Periyasamy

Reputation: 4908

Place each screen in different Activity. Start respective activities according to button presses. To pass data between activities use Intent.

Activity Reference

Intent Reference

Simple Example for Activities and Intents

Upvotes: 2

Related Questions