QuickStart
From AndNavWiki
Contents |
Install Android Development Environment
http://developer.android.com/sdk/index.htm The official android quickstart guide includes...
- Install eclipse
- Install ADT
http://developer.android.com/guide/index.html
Build and run the hello world example. When the emulator starts it can take a while. You should see something like the following in the eclipse console window:
[2010-01-20 12:34:06 - HowdyEarth]------------------------------
[2010-01-20 12:34:06 - HowdyEarth]Android Launch!
[2010-01-20 12:34:06 - HowdyEarth]adb is running normally.
[2010-01-20 12:34:06 - HowdyEarth]Performing edu.wasamata.sample.howdy.HowdyEarth activity launch
[2010-01-20 12:34:11 - HowdyEarth]Automatic Target Mode: launching new emulator with compatible AVD 'Base'
[2010-01-20 12:34:11 - HowdyEarth]Launching a new emulator with Virtual Device 'Base'
[2010-01-20 12:34:16 - HowdyEarth]New emulator found: emulator-5554
[2010-01-20 12:34:16 - HowdyEarth]Waiting for HOME ('android.process.acore') to be launched...
[2010-01-20 12:34:57 - HowdyEarth]HOME is up on device 'emulator-5554'
[2010-01-20 12:34:57 - HowdyEarth]Uploading HowdyEarth.apk onto device 'emulator-5554'
[2010-01-20 12:34:59 - HowdyEarth]Installing HowdyEarth.apk...
[2010-01-20 12:35:11 - HowdyEarth]Success!
[2010-01-20 12:35:11 - HowdyEarth]Starting activity edu.wasamata.sample.howdy.HowdyEarth on device
[2010-01-20 12:35:18 - HowdyEarth]ActivityManager: Starting: Intent { cmp=edu. wasamata.sample.howdy/.HowdyEarth }
During this process the android emulator should start and, eventually, show the android home screen. Before the home screen there will be at least one probably two or three, splash screens displaying the word 'android'.
Get a copy of the AndNav project source
http://code.google.com/p/andnav/ My current development environment is:
- os : Windows 7
- source manangement : git with TortoiseGit - svn checkout
- ide : eclipse/Galileo with ADT
Import the project into eclipse. Select the root directory where the working area was checked out.
Try to build and run (it will almost certainly fail due to missing dependencies).
Resolve dependencies
Update Minimum SDK Version
In AndroidManifest.xml
<uses-sdk android:minSdkVersion="7" />
Build Path Errors
The project cannot be built until build path errors are resolved.
Missing source folder
Project 'AndNav2' is missing required source folder: 'gen'.
Android Target Problem
Unable to resolve target 'android-4'.
Open the SDK manager either from the command line...
android
or open it in eclipse under the window tab and Android SDK and AVD Manager button.
Under Available Packages the site 'https://dl-ssl.google.com/android/repository/repository.xml' should be listed. If not add it. Checking this box and will list a bunch of sdk's and api's, choose the one you want, (both the SDK and the API) and hit 'install selected'. You should now have some targets available.
Under Virtual Device create a new AVD named 'android-4'.

