Difference between revisions of "Hello Android"

From CDOT Wiki
Jump to: navigation, search
(Hello Android Application on Fedora)
(Hello Android Application on Fedora)
 
Line 20: Line 20:
 
[[Image:hello-android-9.png|left|thumb]]<br style="clear:left;" />
 
[[Image:hello-android-9.png|left|thumb]]<br style="clear:left;" />
 
<li>Finally, click on the Menu button on the Android emulator and you should see the results of your Hello Android application.
 
<li>Finally, click on the Menu button on the Android emulator and you should see the results of your Hello Android application.
 +
[[Image:hello-android-10.png|left|thumb]]<br style="clear:left;" />
 
</ol>
 
</ol>
 
Congratulations! You've just run your first Android app.
 
Congratulations! You've just run your first Android app.
[[Image:hello-android-10.png|left|thumb]]<br style="clear:left;" />
 

Latest revision as of 19:40, 5 March 2011

Hello Android Application on Fedora

  1. Start by creating a new Android project. Fill in the project name, Application name, Package name and Activity.
    Hello-android-1.png

  2. Open up the helloandroid.java program in the edit window.
    Hello-android-2.png

  3. Modify the code so that it looks similar to this.
    Hello-android-3.png

  4. Create a new run configuration for the project. Click Apply but don't run the application yet. Just close this window.
    Hello-android-4.png

  5. Open up the Adndroid SDK and AVD manager. Select the platform to run on (2.2 in my case) and click the Start button.
    Hello-android-5.png

  6. In the Launch window just click Launch to start the emulator.
    Hello-android-6.png

  7. The Android emulator will start out looking like this.
    Hello-android-7.png

  8. But then it will switch to this after a minute or so.
    Hello-android-8.png

  9. Now Run your Android application. The Console window might look something like this.
    Hello-android-9.png

  10. Finally, click on the Menu button on the Android emulator and you should see the results of your Hello Android application.
    Hello-android-10.png

Congratulations! You've just run your first Android app.