Android entry (1) Installation and hello World
1. Download and install JDK + eclipse + ADT + android_sdk, see the http://developer.android.com/sdk/index.html
2. Compile helloworld, refer to http://developer.android.com/resources/tutorials/hello-world.html
Note that if an error occurs during compilation,
Android emulator is not starting showing "invalid command-line parameter"
Http://stackoverflow.com/questions/6638713/android-emulator-is-not-starting-showing-invalid-command-line-parameter
Http://stackoverflow.com/questions/6629273/android-emulator-invalid-command-line-parameter
---- Q1 -----
-Download Android SDK
-Run AVD Manager
Install a platform
Create an AVD
Create a new Android Project
-Install ADT (http://developer.android.com/sdk/eclipse-adt.html#installing)
Help> install new software ....
Https://dl-ssl.google.com/android/eclipse/
Locking ing the ADT plugin
Window> preferences...
Select android from the left panel.
For the SDK location in the main panel, Click Browse... and locate your
Downloaded SDK directory.
Click Apply, then OK.
---- Q2 -----
[12:58:12-emulator] Panic: cocould not open: C: \ Documents ents and
Settings \ Administrator \. Android/AVD/avd231.ini
Http://code.google.com/p/android/issues/detail? Id = 19084
As a work-around, you can define the environment variable android_sdk_home
Point to the directory containing your. Android directory. The emulator and SDK
Manager will pick it up properly.
Will look into this. There is likely a difference between the way the SDK manager and
Emulator pick up the user's directory when this variable is not defined.
Set android_sdk_home = E:
Start G: \ soft \ eclipse-java-indigo-win32 \ eclipse \ eclipse.exe
---- Q3 -----
The ADB tool has moved to platform-tools/
If you don't see this directory in your SDK,
Launch the SDK and AVD Manager (execute the android tool)
And install "android SDK
Platform-Tools"
Please also update your path environment variable
Include
Platform-tools/directory, so you can
Execute ADB from any location.
ADB uninstall com. example. Android. APIs
Note: Before run the command, pls run the AVD first