Presentation is loading. Please wait.

Presentation is loading. Please wait.

Android Moving to a second Activity

Similar presentations


Presentation on theme: "Android Moving to a second Activity"— Presentation transcript:

1 Android Moving to a second Activity

2 Starting with an app with one activity having a TextView, a Button and an EditText

3 So far: set up button’s onclick listener and method

4 Right click on package, choose New/Other

5 Choose Android folder/Android Activity/Next

6 Choose Blank Activity/Next, then name the activity and Next (or possibly finish)

7 Preview what’s happening: 1) second activity added to manifest

8 Preview what’s happening: 2) string constant for name of second activity added

9 Preview what’s happening: 3) addition to the menu folder

10 Preview what’s happening: 4) layout xml added for new activity

11 Preview what’s happening: 5) java code for second activity added

12 http://developer. android. com/guide/topics/manifest/manifest-intro

13 Results of addition

14 The AndroidManifest in xml view

15 onClick code to move to second activity
SecondActivity.class as opposed to SecondActivity.java


Download ppt "Android Moving to a second Activity"

Similar presentations


Ads by Google