Post on 15-Jul-2015
info@baabtra.com
facebook.com/baabtra
twitter.com/baabtra
in.linkedin.com/in/baabtra
Android Application Development
Environment Setup for Windows
Android Studio is the official IDE for Android application development,Android
Studio offers
● Flexible Gradle-based build system
● Build variants and multiple apk file generation
● Code templates to help you build common app features
● Rich layout editor with support for drag and drop theme editing
● Lint tools to catch performance, usability, version compatibility, and other problems
● ProGuard and app-signing capabilities
● Built-in support for Google Cloud Platform, making it easy to integrate Google Cloud Messaging
and App Engine
Android Studio Overview
Installing Android Studio
Android Studio provides everything you need to start developing apps for
Android, including the Android Studio IDE and the Android SDK tools.If you
didn't download Android Studio, go download Android Studio now.
Before you set up Android Studio, be sure you have installed JDK 6 or higher
(the JRE alone is not sufficient)—JDK 7 is required when developing for
Android 5.0 and higher. To check if you have JDK installed (and which
version), open a terminal and type javac -version. If the JDK is not available or
the version is lower than 6, go download JDK
after Downloading the exe file…open it.
To set up Android Studio on Windows
1. Launch the .exe file you just downloaded.
2. Follow the setup wizard to install Android Studio and any necessary SDK tools.
3. On some Windows systems, the launcher script does not find where Java is installed. If you
encounter this problem, you need to set an environment variable indicating the correct
location.
- Select Start menu > Computer > System Properties > Advanced System Properties.
Then open Advanced tab > Environment Variables and add a new system variable
JAVA_HOME that points to your JDK folder, for exampleC:\Program
Files\Java\jdk1.7.0_21.
4. Android Studio is now ready and loaded with the Android developer tools, but there are still
a couple packages you should add to make your Android SDK complete
Adding SDK Packages
Android SDK does not include everything you need to start developing.
The SDK separates tools, platforms, and other components into packages you can download as needed
using the Android SDK Manager. So before you can start, there are a few packages you should add to
your Android SDK.
● In Android Studio, click SDK Manager in the toolbar.
When you open the SDK Manager for the first time, several packages are selected by default. Leave these
selected, but be sure you have everything you need to get started by following these steps:
1. Get the latest SDK tools
2. Get the support library for additional APIs
3. Install the packages
Get the latest SDK tools
As a minimum when setting up the Android SDK, you should download the latest tools and Android
platform:
1. Open the Tools directory and select:
- Android SDK Tools
- Android SDK Platform-tools
- Android SDK Build-tools (highest version)
2. Open the first Android X.X folder (the latest version) and select:
- SDK Platform
- A system image for the emulator, such as
ARM EABI v7a System Image
Get the the Support library for additional API’s
The Android Support Library provides an extended set of APIs that are compatible
with most versions of Android.
Open the Extras directory and select:
● Android Support Repository
● Android Support Library
Note: Google Play services APIs are not available on
all Android-powered devices, but are available on all
devices with Google Play Store. To use these APIs in
the Android emulator, you must also install the
theGoogle APIs system image from the latest Android
X.X directory in the SDK Manager.
Install the Packages
Once you've selected all the desired packages, continue to install:
1. Click Install X packages.
2. In the next window, double-click each package name on the left to accept the license agreement for each.
3. Click Install.
The download progress is shown at the bottom of the SDK Manager window. Do
not exit the SDK Manager or it will cancel the download.
Managing Virtual Devices
An Android Virtual Device (AVD) is an emulator configuration that lets you model an
actual device by defining hardware and software options to be emulated by the
Android Emulator.The easiest way to create an AVD is to use the graphical AVD
Manager,
To launch the AVD Manager
★ In Android Studio, select Tools > Android > AVD Manager, or click the AVD Manager icon in the toolbar.
Or, use the command line to navigate to your SDK's tools/ directory and execute:
$ android avd
Creating Virtual Devices
To create an AVD based on an existing device definition:
1. From the main screen (figure 1), click Create Virtual Device.
2. In the Select Hardware window, select a device configuration, such as Nexus 6, then click Next.
3. Select the desired system version for the AVD and click Next
4. Verify the configuration settings, then click Finish.
5. If necessary, click Show Advanced Settings to select a custom skin for the hardware profile and
adjust other hardware settings.
6. To launch the AVD in the Android Emulator, click the launch button in the list of AVDs.
Click the CREATE button for
creating new AVD
Build Something!
❖ With the above packages now in your Android SDK.
❖ you're ready to build apps for Android. As new tools and other APIs become
available.
❖ simply launch the SDK Manager to download the new packages for your SDK.
US UK UAE
7002 Hana Road,
Edison NJ 08817,
United States of America.
90 High Street,
Cherry Hinton,
Cambridge, CB1 9HZ,
United Kingdom.
Suite No: 51, Oasis Center,
Sheikh Zayed Road, Dubai,
UAE
Email to info@baabtra.com or Visit baabtra.com
Looking for learning more about the above
topic?
India Centres
Emarald Mall (Big Bazar Building)
Mavoor Road, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
NC Complex, Near Bus Stand
Mukkam, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
Cafit Square IT Park,
Hilite Business Park,
Kozhikode
Kerala, India.
Email: info@baabtra.com
TBI - NITC
NIT Campus, Kozhikode.
Kerala, India.
Start up Village
Eranakulam,
Kerala, India.
Start up Village
UL CC
Kozhikode, Kerala
Follow us @ twitter.com/baabtra
Like us @ facebook.com/baabtra
Subscribe to us @ youtube.com/baabtra
Become a follower @ slideshare.net/BaabtraMentoringPartner
Connect to us @ in.linkedin.com/in/baabtra
Give a feedback @ massbaab.com/baabtra
Thanks in advance
www.baabtra.com | www.massbaab.com |www.baabte.com
Want to learn more about programming or Looking to become a good programmer?
Are you wasting time on searching so many contents online?
Do you want to learn things quickly?
Tired of spending huge amount of money to become a Software professional?
Do an online course @ baabtra.com
We put industry standards to practice. Our structured, activity based courses are so designedto make a quick, good software professional out of anybody who holds a passion for coding.