1. Open one of your project's files and click Run from the toolbar.
2. In
the Run as window that appears,
select Android Application and click
OK.
Eclipse installs the app on your
connected device and starts it.
Or to run your app from a command
line:
1. Change
directories to the root of your Android project and execute:
ant
debug
2. Make sure the Android SDK platform-tools/ directory
is included in your PATH environment variable, then execute:
adb
install bin/MyFirstApp-debug.apk
3. On
your device, locate MyFirstActivity and open
it.
That's how you build and run your Android app on a device! To
start developing, continue to the next lesson.
No comments:
Post a Comment