FU Lecture 03
FU Lecture 03
Android Application
Hello World!
Today's Agenda
Create an Android Project in Eclipse
You don't need to restart the emulator when you have a new
version of your application
Run the Android Application
Run the Android Application
Run your app from the command line
Change directories to the root of your Android project and
execute:
ant debug
Make sure the Android SDK platform-tools/ directory is
included in your PATH environment variable, then execute:
adb install bin/HelloWorld-debug.apk
On the emulator, locate HelloWorld and open it.
Create a Project with CMD Tools
Run CMD tool
Change directories into the Android SDK’s tools/ path.
Execute:
android list targets
Execute:
android create project --target <target-id> --name MyFirstApp \
--path <path-to-workspace>/MyFirstApp
--activity MainActivity \ --package com.example.myfirstapp