Skip to content

Half Dozen Hello Worlds Part 6 – Opening Activities

Using Your Activity

Open the AndroidManifest.xml and click on the Application tab.

3_Manifest

Now click on Add, Select Activity, and click okay. Now, next to name click browse and browse to your activity. If you save and run again, you should see that clicking on Hello 1 now displays a screen that says, “Hello World”.

I will leave adding getting the Hello 2 item on the list working as an exercise for the reader.

{ 1 } Trackback

  1. Learn Android : Using Android Intents | December 13, 2011 at 12:19 am | Permalink

    [...] this article I showed you how to open a specific activity using the startActivity method and an Intent that [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *