Select Page

Start Android Development in 5 Minutes

Welcome to Android application development! If you’re new to Android app development, this where you should begin.

Download Android Studio

Android Studio is a new Android development environment based on IntelliJ IDEA. Similar to #Eclipse with the ADT Plugin, Android Studio provides integrated Android developer tools for development and debugging. On top of the capabilities you expect from IntelliJ, Android Studio offers:

  • Gradle-based build support.
  • Android-specific refactoring and quick fixes.
  • Lint tools to catch performance, usability, version compatibility and other problems.
  • ProGuard and app-signing capabilities.
  • Template-based wizards to create common Android designs and components.
  • A rich layout editor that allows you to drag-and-drop UI components, preview layouts on multiple screen configurations, and much more.
  • Built-in support for Google Cloud Platform, making it easy to integrate Google Cloud Messaging and App Engine as server-side components.

Download http://developer.android.com/sdk/installing/studio.html

This download includes:

  • Android Studio early access preview
  • All the Android SDK Tools to design, test, debug, and profile your app
  • The latest Android platform to compile your app
  • The latest Android system image to run your app in the emulator

Now start Android studio

Download SDK

SDK Manager

click on “SDK Manager”, this open the following windows, select at least the latest version of

  • Android SDK Tools
  • Android SDK Build-Tools
  • Android 4.4.2 (API 19)

The more you download the better, (so you can support more device, it will just take more disk and take longer to download)

download in SDK Manager

Create a new Project

Create a new project

createANewProjectInAndroidStudio

Click Next and Finish, after some seconds the project will be created

Click now startEmulatorInAndroidStudio, the emulator will start

defineEmulatorInAndroidStudio

Click OK, be patient, your Hello World app will appear

Push your app to Google Play Store

In order to push this Application (*.apk) to Google Play Store, it has to be signed and zip aligned,

Hit CTRL-SHIF-A and type “sign” and select “Generate Signed APK…”

GenerateSignedAPK

Click OK to continue

signAPKContinue

hit “Create new…”

createNewAPK

then fill up the form

fillUpTheForm

Note the location, password and alias you have chosen

Now in your module helloworld/build.graddle add the following in android {} so it look like. Use for storeFile, storePassword, keyAlias and keyPassword the values entered in previous screen.

Note also “zipAlign true”

apply plugin: 'android'  android {     compileSdkVersion 19     buildToolsVersion "19.0.1"      defaultConfig {         minSdkVersion 9         targetSdkVersion 19         versionCode 1         versionName "1.0"     }      signingConfigs {         myConfig {             storeFile file("C:\\Android\\keystore.jks")             storePassword "abced"             keyAlias "android"             keyPassword "abced"         }     }      buildTypes {         release {             runProguard true             zipAlign true             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'             signingConfig signingConfigs.myConfig         }     }  }  dependencies {     compile 'com.android.support:appcompat-v7:+' }

Click on the right corner on Gradle Tab

graddle

and then double click on “assemble”, 3 apk will be create in helloworld/build/apk/

  • helloworld-debug-unaligned.apk
  • helloworld-release.apk
  • helloworld-release-unaligned.apk

Go now to the developer console https://play.google.com/apps/publish/ and create or reuse one of your Google account

You can now upload the file helloworld-release.apk to the shop and start using it.

That was the easy part, so now happy coding!

Move now to more advanced topics by visiting http://developer.android.com/training/basics/firstapp/index.html

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments

Categories

0
Would love your thoughts, please comment.x
()
x