Installation



Why Develop For Android?##

With over 1 billion Android devices already activated, Android represents an incredible opportunity for developers. Android Studio is a latest and most widely accepted IDE designed by Google itself. If you want to develop apps in android then it is highly recommended to use Android Studio.


Quick Overview

A typical native android application is written using XML for the frontend (the User Interface) and JAVA for the backend.


JAVA All the programming part in android development is done using JAVA. Although it’s a great advantage, if you know a thing or two about programming in Java, but even if you know any object oriented programming language, then it will not be much difficult to relate to the concepts used during development. In short if you know C++ or C then also you are at peace.


XML This is used to build the app’s user interface. All user interface elements in an Android app are built using View and ViewGroup objects. It has drag and drop User Interface


Running the app An android application can run either on your device or in the emulator that comes bundled with the SDK. Since the emulators can be slow, it is always recommended to use an actual device. This link contains the detailed explanation for setting up your device/emulator for testing.


Installation of Android Studio#


JDK and JRE are essential for JAVA to run on your machine.

For windows:

Installing JAVA

Follow the link and click Java Platform (JDK) 8u60 photograph. It redirects to a new page on which select Accept the license and download the version which is best suited with your machine. After installing the JDK, you need to set the environment variable JAVA_HOME path and for that:

  • For this, right-click on the ‘This PC’ icon on your desktop and select ‘Properties’. On the next screen that appears, go to ‘Advanced system settings’ item. On the ‘System Properties’ window that appears, select the ‘Environment Variables’ button. System Properties
  • The ‘Environment Variables’ window will appear (see figure below). Click on the ‘New…’ button. Environment Variables
  • The ‘New System Variable’ window will appear (see the figure below). Enter ‘JAVA_HOME’ as the variable name and ‘C:\Program Files\Java\jdk1.8.0_25’ as the variable value. Then click the ‘OK’ button. New System Variable
  • Scroll down the ‘System variables’ window until you see the ‘Path’ item, then click on it. Then click on the ‘Edit…’ button. The ‘Edit System Variable’ window will appear. Edit System Variable
  • Click anywhere in the ‘Variable value’ field and then press the End key on your PC. Then type the following into the field:

;C:\Program Files\Java\jdk1.8.0_25\bin\

*Do not forget the semi-colon at the start - they are used to separate each path item from one another. The completed screen will look something like this: Edit system variable 2

Installing IDE


• Go to this link and select “Download Android Studio for Windows”.

• Check the “ I have read and agree with the above terms and conditions” box and Download Android Studio For Windows.

• Install studio after downloading.

• Open the Android Studio. A window similar to the below one would appear. Select configure in it. New Project

• Click on the SDK Manager icon (containing android and a downward sign).Configure

Install the following packages SDK tools

For Linux Users :

Installing JAVA • sudo apt-get update

• sudo apt-get install default-jre

• sudo apt-get install default-jdk

• sudo apt-get install oracle-java8-installer

• sudo update-alternatives –config java

• sudo vim /etc/environment – add JAVA_HOME=”YOUR_PATH” {Your path is the path returned in previous command}.

• source /etc/environment

For reference one can visit this link.

If there is still some error, one could also refer here

Installing IDE

  • Follow this link -> select All Android Studio Packages -> Linux. This will start the download.
  • Extract the file. In terminal type : cd /{Location where you extracted}/android-studio/bin sh studio.sh

• Open the Android Studio. A window similar to the below one would appear. Select configure in it. New Project

• Click on the SDK Manager icon (containing android and a downward sign).Configure

• Install the following packages SDK tools

Some Common errors:

thenewboston : Youtube channel to get you started.

Some basic links to grasp a bit of more knowledge: http://stackoverflow.com/questions/1906445/what-is-the-difference-between-jdk-and-jre

http://stackoverflow.com/questions/5102022/what-does-the-java-home-environment-variable-do




We new friends!