My new Android app Lists! is now available at the Google Play Store for a mere 99¢.
Check it out and let me know what you think in the comments. Or you can email me at firstname.lastname@example.org!
Here are some screenshots:
Part 1: Setting up the Environment
So you want to give Android app development a try? The first step, and one that can seem more complicated than it needs to be, is getting your development environment ready to go.
To set up your development environment, follow these steps:
- Download and install the Java Developers’ Kit (JDK)
- Download and install the Android Software Developers’ Kit (SDK), and remember or write down the installation path which we’ll need later
- Download and install Eclipse (select “Eclipse Classic”), which is what you’ll be using as your IDE (“integrated development environment”) and where all your work will be done.
- Download and install the ADT Plugin for Eclipse:
- Start Eclipse (which was installed in step 3)
- Open menu Help > Install New Software…
- Click Add in the top-right corner
- A dialog titled Add Repository should appear. Enter “ADT Plugin” as the name, and this url for the location: https://dl-ssl.google.com/android/eclipse/
- Click OK
- In the Available Software dialog, click the checkbox next to Developer Tools and click Next
- Now you should see a list of items to be downloaded. Click Next
- Read and accept the license agreement, then click Finish
- When complete, restart Eclipse
- Configure the ADT Plugin for Eclipse:
- Open menu Window > Preferences
- Select Android from the left side
- For the SDK Location in the main panel and click Browse…
- Navigate to the Android SDK installation path we wrote down in step 2, then click Apply
- Download the Android APIs:
- In Eclipse, go to menu Window > Android SDK Manager
- Select the versions you want to develop apps for. API level 10 is Android 2.3 (aka Gingerbread), API level 14 is Android 4.0 (aka Ice Cream Sandwich). Click the checkboxes to the left of the version(s) you want, then Install X Package(s). These APIs are fairly large, so once you select the version(s) you want, it may take a while to download and set up
- Set up virtual Android device(s):
- In Eclipse, go to menu Window > AVD Manager
- On the right, click New…
- Name the virtual device whatever you like, descriptive names are always good
- Select the target API level, depending on which version of Android you want to develop for. Note: The only options that will be displayed will be API levels that you downloaded/installed in the SDK Manager step above
- Choose a size for the virtual device’s internal storage. The default unit is “MiB”, which is the same as “MB” or “megabytes”. 4 gigabytes is sufficient, so enter 4096 in that field. If you prefer a little more breathing room, you can enter 8 gigabytes, which would be 8192
- You can accept all the other options as they’re currently set, so go ahead and click Create AVD
- Once created, you can test it out by clicking on it on the left side, then click Start… on the right. If everything was set up correctly, after about 5 minutes you should have a fresh Android virtual device at the lock screen.
- Now you’re ready to develop an Android application! Check back for basic tutorials on how to create, code and publish an Android app that you can install on your phone.