Andriod App – Quick Start


This is a quick walkthrough to get started on Andriod Application development (on Windows)

Install the Andriod SDK
http://developer.android.com/sdk/index.html
Run

Install Eclipse
http://www.eclipse.org/downloads/
Eclipse Classic is recommended
Install

Eclipse Plugin
Open eclipse
Help > Install New Software > Add
In the location box type in:

https://dl-ssl.google.com/android/eclipse/

Tick Developer Tools and click next agreeing to all terms etc.
Eclipse then needs to be restarted

Now to start with a simple hello work example that Andriod helps you out with:

Start project:
Click New Android App Project
Type in a name for your project
All other fields will get populated for you (keep as it is as this is only a demo)
Continue through Launcher icon
Select BlankActivity and click Next
Finish

You now have a simple application project create.

Further explination about code structure available at
http://developer.android.com/training/basics/firstapp/running-app.html

Create Virtual devices (used for modeling different devices)
click Android Virtual Device Manager
New (top right)

Fill in the details for the AVD.
Give it a name, a platform target, an SD card size, and a skin (HVGA is default).
Press Create
Click on new device and start from the right hand menu (this will load the emulator so you can see it working)

Screen Size guide:

  • xlarge screens are at least 960dp x 720dp
  • large screens are at least 640dp x 480dp
  • normal screens are at least 470dp x 320dp
  • small screens are at least 426dp x 320dp

Get your app to run on the emulator device:
Click on the run button  and select Andriod Application (asked on first run)
Your app will now run the emulator

Run on a Real device:

Firstly you need to allow developer options on the Andriod device.

Settings > System > Developer Options

And switch these options on and check USB debugging

You may need drivers to get the connection to work for windows so go to (gets a bit tricky sometimes)

http://developer.android.com/tools/extras/oem-usb.html to find what you need

Now you can run this app directly on your device.

Allow your app to be downloaded (Not on the play store)

Get the APK file from the /bin/ folder
Either email them the .apk file or upload to a location they can download it.
Devices will need to allow unknown sources for it to download
Under “Settings,” select “Application Settings” and then enable “Unknown Sources.”

Easy as that.

You now have the hello world app working on an emulator and on any andriod phone you send it to.

Leave a Reply

Your email address will not be published. Required fields are marked *