Prerequisite: Basics of Java
Name: Overview and Setting up Eclipse
Details: So guys lets start our Course, First of all for this course you all should have the basic knowledge of Java because we will use Java for our entire programming.
Overview:
So lets start our class with some overview of what Android is. Well its a linux based Operating system and now developing by Google. Now a day every new smart phone has Android Operating System and its the most popular one. Its very Boring as we know so now lets see how to develop its applications.
Setting up Eclipse:
For my case I first search that what environment I should chose and there are lots of platforms even Visual Studio also offers it but I come to know that Eclipse is used by majority so we move towards it. Some People says that Eclipse is slow but I found that its depends upon your PC's speed. So Lets move how to setup eclipse in a fully fresh system. And one more thing I assumes that you all are using Windows platform. So lets get started.
Download JDK and Eclipse: I forgot to tell you people about what JDK is. I hope 90% of my readers knows that but for some you can assume that JDK is like hardware of your system for running all of your software etc.
So Now lets start. First of all go to this site and download JDK.
http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
The page is like this after scrolling but there might be different versions because of new release of JDK versions.
So based on your system's operating system click on the the link like if you have 32-bit operating system then click on windows x86 else on windows x64 and if you don't know about your operating system's type click on windows x86. but don't forgot to read the License Agreement and click the radio button to agree that. After this normally you downloading should start.
So After it now move to download Eclipse. By the time I am just assume that don't have any eclipse so download the eclipse from this site's link given below.
People which have their eclipse can also download it.It have some Pre Installed tools but we can download and install them also in other specific versions of Eclipse. Their installation process is also given below after this.
http://developer.android.com/sdk/index.html#download
The page looks like this.
Problems and confusions: So while these are downloading let me explain you where I had confused where I had faced problems and all why should I recommend you that you should go for this version of Eclipse.
First of all I don't understand what is Android SDK And Android ADT and I use my own version of Eclipse and I download it also so I was confuse that which Eclipse I should chose. so lets Quickly see the solutions from my approach.
Android SDK and ADT:
From my point of view Android SKD is like the Internet Download Manager(IDM) for downloading specific Android Version development platform like if you want to develop application for your own phone which has android version like 4.1.2 or some else, for that you have to download android platform for 4.1.2 all these things are managed by SDK you just have to start it and check the ones you want to download and it will download it and install it for you.
For ADT I think overall environment of Android Development which has SDK+Eclipse+AVD plugin are collectively called ADT. But don't worry we can better understand all these terms when we go through the whole process of development so relax about it.
Installing JDK:
So after that when both of your files downloaded first install JDK just click on its file and then install it in normal way. You just have to take care of this while installing
Just click on this and install it in normal way.
SDK Manager:
After that Unzip your eclipse file and then you will see that there is a file name SDK Manager.exe first you have to run that just double click on it and wait a few seconds. After that a new windows will appear like this
From these android versions you have to select those for that you want to develop apps just check them and click on the install package button. Like in this I want to download Android 4.4.2 so I checked it and clicked the install button. You also can select multiple versions and download them.
After that wait and It will download these for you. After that run eclipse set your preferences first like in screen short select the platform you want to develop for and click OK like in screen short.
This mean for a specific app you have to tell your system that it is for this specific version.
Android Virtual Device:
Now If you do this all you have to made a device to test your apps like in Eclipse Java programming there is a console where the output of your software appears, so in Android you made an imaginary android mobile device which is called AVD (Android Virtual Device) and it has all the features like an actual mobile device, all the apps you made were test executes in this device. So how to made it its pretty simple so Follow the screen shorts.
So Can gave any name to it and can customize it as you want but important is that what is your target android version is so select it carefully and click OK, then you will see that there in Android Virtual Device Manager Your device appear next step is to run that device.
You can scale it and also launch it without scaling.. Your Virtual device will start running and you can see it.
If you run your device successfully you don't need to read this Lecture more.. Congrats its done for today.. See you in Next lecture...
Using your own Eclipse:
So for the people who want to use their own Eclipse have first to download just SDK from this website
https://developer.android.com/sdk/index.html?hl=i#download
Follow screen shorts.
After it check the License agreements and download it. After it just install it in normal way but copy the location of it you will need it when integrating with eclipse.
ADT Plugin:
So your next step is to download ADT plugin for Eclipse its like a driver when you attach any external thing with your laptop or PC you also need a driver of it otherwise its use less for you, so ADT has to be install. For ADT run your eclipse and follow the screen shorts.
For the best results you have to google 'Installing the Eclipse Plugin' and open your first link or you can directly go to
http://developer.android.com/sdk/installing/installing-adt.html
and scroll down and follow screen short.
And Click OK.
Click next it will start your downloading and may be it gave you some warnings but don't take them so seriously. But if you have some problems you can avoid that its up to you. After it finishes then follow screen shorts again.
After that Click OK. Then again follow screen short.
You just have to go to that directory where you places your SDK and rest of the work will done by Eclipse select the environment in which you want to develop and then click OK. So here you are done by all. You are ready to make an android application. All you need is to made a Virtual device and its detail are given above you can read. So Guys its all for Today see you tomorrow... Good By :) and thanks for reading.
















