Skip to main content

Android format.

You will be glad to know that you can start your Android application development on either of the following operating systems:
  • Microsoft Windows XP or later version.
  • Mac OS X 10.5.8 or later version with Intel chip.
  • Linux including GNU C Library 2.7 or later.
Second point is that all the required tools to develop Android applications are freely available and can be downloaded from the Web. Following is the list of software's you will need before you start your Android application programming.
  • Java JDK5 or JDK6
  • Android SDK
  • Eclipse IDE for Java Developers (optional)
  • Android Development Tools (ADT) Eclipse Plugin (optional)
Here last two components are optional and if you are working on Windows machine then these components make your life easy while doing Java based application development. So let us have a look how to proceed to set required environment.

Step 1 - Setup Java Development Kit (JDK)

You can download the latest version of Java JDK from Oracle's Java site: Java SE Downloads. You will find instructions for installing JDK in downloaded files, follow the given instructions to install and configure the setup. Finally set PATH and JAVA_HOME environment variables to refer to the directory that contains java and javac, typically java_install_dir/bin and java_install_dir respectively.
If you are running Windows and installed the JDK in C:\jdk1.6.0_15, you would have to put the following line in your C:\autoexec.bat file.
set PATH=C:\jdk1.6.0_15\bin;%PATH%
set JAVA_HOME=C:\jdk1.6.0_15
Alternatively, you could also right-click on My Computer, select Properties, then Advanced, thenEnvironment Variables. Then, you would update the PATH value and press the OK button.
On Linux, if the SDK is installed in /usr/local/jdk1.6.0_15 and you use the C shell, you would put the following code into your .cshrc file.
setenv PATH /usr/local/jdk1.6.0_15/bin:$PATH
setenv JAVA_HOME /usr/local/jdk1.6.0_15
Alternatively, if you use an Integrated Development Environment (IDE) Eclipse, then it will know automatically where you have installed your Java.

Step 2 - Setup Android SDK

You can download the latest version of Android SDK from Android official website : Android SDK Downloads. If you are installing SDK on Windows machine, then you will find a installer_rXX-windows.exe, so just download and run this exe which will launch Android SDK Tool Setup wizard to guide you throughout of the installation, so just follow the instructions carefully. Finally you will haveAndroid SDK Tools installed on your machine.
If you are installing SDK either on Mac OS or Linux, check the instructions provided along with the downloaded android-sdk_rXX-macosx.zip file for Mac OS and android-sdk_rXX-linux.tgz file for Linux. This tutorial will consider that you are going to setup your environment on Windows machine having Windows 7 operating system.
So let's launch Android SDK Manager using the option All Programs > Android SDK Tools > SDK Manager, this will give you following window:
Android SDK Manager
Once you launched SDK manager, its time to install other required packages. By default it will list down total 7 packages to be installed, but I will suggest to de-select Documentation for Android SDK andSamples for SDK packages to reduce installation time. Next click Install 7 Packages button to proceed, which will display following dialogue box:
Android Installation
If you agree to install all the packages, select Accept All radio button and proceed by clicking Installbutton. Now let SDK manager do its work and you go, pick up a cup of coffee and wait until all the packages are installed. It may take some time depending on your internet connection. Once all the packages are installed, you can close SDK manager using top-right cross button.

Step 3 - Setup Eclipse IDE

All the examples in this tutorial have been written using Eclipse IDE. So I would suggest you should have latest version of Eclipse installed on your machine.
To install Eclipse IDE, download the latest Eclipse binaries from http://www.eclipse.org/downloads/. Once you downloaded the installation, unpack the binary distribution into a convenient location. For example in C:\eclipse on windows, or /usr/local/eclipse on Linux and finally set PATH variable appropriately.
Eclipse can be started by executing the following commands on windows machine, or you can simply double click on eclipse.exe
 %C:\eclipse\eclipse.exe
Eclipse can be started by executing the following commands on Linux machine:
$/usr/local/eclipse/eclipse
After a successful startup, if everything is fine then it should display following result:
Eclipse Home page

Step 4 - Setup Android Development Tools (ADT) Plugin

This step will help you in setting Android Development Tool plugin for Eclipse. Let's start with launching Eclipse and then, choose Help > Software Updates > Install New Software. This will display the following dialogue box.
Android Development Plug-in
Now use Add button to add ADT Plugin as name and https://dl-ssl.google.com/android/eclipse/ as the location. Then click OK to add this location, as soon as you will click OK button to add this location, Eclipse starts searching for the plug-in available the given location and finally lists down the found plugins.
Android Development Plug-ins
Now select all the listed plug-ins using Select All button and click Next button which will guide you ahead to install Android Development Tools and other required plugins.

Step 5 - Create Android Virtual Device

To test your Android applications you will need a virtual Android device. So before we start writing our code, let us create an Android virtual device. Launch Android AVD Manager using Eclipse menu options Window > AVD Manager> which will launch Android AVD Manager. Use New button to create a new Android Virtual Device and enter the following information, before clicking Create AVD button.
Android Virtual Device
If your AVD is created successfully it means your environment is ready for Android application development. If you like, you can close this window using top-right cross button. Better you re-start your machine and once you are done with this last step, you are ready to proceed for your first Android example but before that we will see few more important concepts related to Android Application Development.

Comments

Popular Post

India & Russia Relation

1.  India expects Russia to be more involved in the Indo-Pacific and to look to its own interests in the region. 2. This will create a mutual basis for cooperation and dialogue. 3. Investments in Vietnam’s oil and gas sector is seen as one of the areas of cooperation as both India and Russia have planned to invest in this sector. 4. India also sees Russia as a very important Pacific power 5. Russia has an interest in the Indian Ocean and India has an interest in the Pacific Ocean. 6. As, Indo-Pacific is seen as a geographic continuum for cooperation and for certain principles, India wants Indo-Pacific region to be free and fair for everyone. 7. Russia views its engagement would create new divisions especially with respect to containment of China. 8. On the other hand, India neither views it as containment nor non-containment but as a positive construct that brings together countries on the basis of certain principles. South China sea 1. A stable Indo-Pacific assumes particular impo...

SSC WORD

1. TRANQUILITY : शांति Meaning:  a peaceful, calm state, without noise, violence, worry, etc. Synonyms:  calmness, coolness Antonyms:  chaos, loudness Example:  Not surprisingly, the desire for tranquility among local inhabitants is almost palpable. 2. REBOUND : वापस आना Meaning:  If an action rebounds on you, it does not have the effect you hoped for but has an unpleasant effect on you instead Synonyms:  recoil, recuperate Antonyms:  weaken, hurt Example:  His continual demands for sympathy rebounded on him because his friends finally stopped listening. 3. INVIGORATE : प्रोत्साहन Meaning:  to give new energy or strength to someone or something Synonyms:  boost, stimulate Antonyms:  discourage, dissuade Example:  They argued that a cut in the tax rate would invigorate the ec...

UPSC

📌PERIOD POVERTY Scotland may become the first country in the world to end ‘period poverty’ by making sanitary products free for all. About: • The Scottish Parliament passed the Period Products (Free Provision) (Scotland) Bill. • Referring to “period dignity”, the legislation aims to develop a universal system in Scotland, which will provide free sanitary products for “anyone who needs them”. • As of now, in Scotland, the provision of free sanitary products is already available in schools, universities and colleges. • The Bill has only passed the first hurdle to become a law. It still needs to be considered by a parliamentary committee, following which it will require approval from the parliament. It will finally need the Royal Assent of the Queen.  ▪️Important Info : What is ‘period poverty’? Some circumstances make menstruation a “difficult experience” for women. T...

Apple is testing a ChatGPT-like AI chatbot

  According to a recent report by Bloomberg's Mark Gurman, Apple is making significant strides in the development of artificial intelligence tools to rival the likes of OpenAI and Google. Internally referred to as "Apple GPT," the tech giant has created a chatbot using its proprietary framework called "Ajax." This framework, built on Google Cloud with Google JAX, enables the creation of large language models similar to ChatGPT and Google's Bard. While Apple is yet to finalize its strategy for consumer release, it is reportedly planning a major AI-related announcement next year. The chatbot's internal rollout faced delays due to security concerns related to generative AI. However, it has been made available to a growing number of Apple employees with special approval, primarily for product prototyping purposes. Apple's chatbot can summarize text and answer questions based on its training data. Although it shares similarities with commercially availabl...

जम्मू और कश्मीर में सुरंगें Tunnels in Jammu & Kashmir

जम्मू और कश्मीर में सुरंगें Tunnels in Jammu & Kashmir केंद्रीय सड़क परिवहन और राजमार्ग मंत्री विभिन्न राष्ट्रीय राजमार्ग (National Highway- NH) परियोजनाओं की आधारशिला रखेंगे तथा केंद्रशासित प्रदेश जम्मू एवं कश्मीर में जेड-मोड़  (Z-Morh)  तथा जोजिला सुरंग ( Zojila Tunnel)  की समीक्षा एवं निरीक्षण करेंगे। प्रमुख बिंदु श्यामा प्रसाद मुखर्जी सुरंग:  चेनानी-नाशरी सुरंग (Chenani-Nashri Tunnel) का नाम बदलकर श्यामा प्रसाद मुखर्जी सुरंग (Shyama Prasad Mukherjee Tunnel) कर दिया गया है। यह न केवल भारत की सबसे लंबी राजमार्ग सुरंग (9 किमी. लंबी) है बल्कि एशिया की सबसे लंबी द्वि-दिशात्मक राजमार्ग सुरंग (Bi-directional Highway Tunnel) भी है।  यह जम्मू एवं कश्मीर में उधमपुर तथा रामबन के मध्य निम्न हिमालय पर्वत शृंखला में स्थित है। बनिहाल काज़ीगुंड सुरंग:  यह बनिहाल और काज़ीगुंड को जोड़ने वाले जम्मू एवं कश्मीर केंद्रशासित प्रदेश में पीर पंजाल रेंज में 1,790 मीटर की ऊंँचाई पर स्थित 8.5 किमी. लंबी सड़क सुरंग (Road Tunnel) है। जवाहर सुरंग:  इसे बनिहाल सुरंग (Banihal Tu...

Follow the Page for Daily Updates!