Women Who Code Workshop : Android Development 101 — Pre-requisite
Preparation for the Workshop
We will be using Android Studio as our IDE. The Android Studio installation includes the latest Android SDK, tools for debugging and testing your apps, and an Android emulator. You will also need to update your java installation to JDK 7.
Download and Install Android Studio
You can download Android Studio from the developer site.
The installation is easy and the steps can be found here. This is the official IDE for developing Android App for a range of devices.
Download and Install Java Development Kit 7
You can download newer versions of JDK here. JDK 8 will work too.
Download Earlier SDK Versions
Android Studio provides the SDK and the emulator system image from the latest platform. However, you may want to test your apps on earlier versions of Android.
You can get components for each platform using the Android SDK Manager. In Android Studio, select Tools → Android → SDK Manager. (You will only see the Tools menu if you have a project open. If you have not created a project yet, you can instead access the SDK Manager from the Android Setup Wizard screen. Under the Quick Start section, select Configure → SDK Manager).
Select and install each version of Android that you want to test with. Note that downloading these components may take a while.
The Android SDK Manager is also how to get Android’s latest releases, like a new platform or an update of the tools.
Bring an Android device
The emulator will do in a pinch, but it can be slow and is no substitute for an Android device. If you’re bringing in your own device, you’ll have to enable USB debugging.
Enabling USB Debugging
First, plug your device into your system. On devices running Android 4.2 or later, Developer options needs to be enabled: go to Settings → About tablet/phone and press Build number 7 times. Return to Settings, go to Developer options and enable USB debugging. If you’re running on a Mac, your system should detect your device right away. If you’re running on a Windows machine, you may need to install the adb (Android Debug Bridge) driver; if Windows cannot find the driver, then download one from the device manufacturer’s website.
Positivity Dose App
In this hands-on workshop, we will be creating a fun communication app named Positivity Dose. Positivity Dose allows you to select a contact from your phone’s contact list and send him/her a motivational SMS message. This app also displays when and to whom the last message or ‘positivity dose’ was sent. Through this workshop, we will build & refactor this app one step at a time, implementing the concepts and topics we introduce.
Create Your Project
This is the first step for creating an App. Create a project in Android Studio for your app.
Open Android Studio. If this is the first time you’ve opened it, you will see the Welcome dialog; select Start a new Android Studio project. If you do not see this dialog, choose File → New Project…
For the next steps, please attend the workshop at Women Who Code.
By the end of this, you should have:
- Android Studio setup
- Java installed
- Emulator and Android Device available for quick testing
- Understanding of the App we will be developing