Showing posts with label Development. Show all posts
Showing posts with label Development. Show all posts

Monday, May 14, 2012

Configuration of the Eclipse for Android Development


As I have informed to you in my previous blog,
We should have installed the Java SDK in order to configure your android development.

Installation of Android SDK

Download the Android SDK and start to install,
while you are installing the SDK you may encounter the steps as i have given in below screen shots.



Installation Step 1

after the SDK installation you can select the required API versions other than default packages in the Android SDK Manger wizard.

Android SDK Manger 

Installation of ADT for Eclipse 

Open your Eclipse IDE and go to help, where you can find a option "Install New Software" Option in the menu as shown in below image.

Install New Software in Eclipse
Click on "Add" Button

Add New Site/Type
Once you clicked the Add button, system will give above dialog box to insert the values,
where you can give the name as "ADT Plugin" and location as "https://dl-ssl.google.com/android/eclipse/"

Add Repository

Once you add the Repository, the IDE will indicate the available installations. where you can select the  Developer tool options.

Developer tool Options
Developer tool instillation 

Developer tool instillation


License Agreement 

Installing the software

SDK configuration
SDK configuration


Final Part of the SDK configuration














Friday, June 3, 2011

First Experiment with Android Development Tools


In order to continue this tutorial, you should have installed necessary development tools and IDE for Android application development. If not please go through with my previous blog!

Open the Eclipes IDE and click on File -> New->Other
Then you will find a wizard as give in Figure 1, and select Android Project.

Figure 1
Figure 2

Once you typed the project name you may encounter an error saying that “An SDK Target must be specified.” It means that you have not set the respective android SDK for the tool.

In order to set the path, go to window -> preference. You will find a wizard as shown in figure 3,

Figure 3

Select android first and give the SDK location by selecting “Browse...” button. Once you select the correct path press “Apply” button. The “Figure 4” is illustrating the result of previous query.

Figure 4

Wheew…. We are configured the development tool!
Now we will start to create our first android application!!... Better we call it as Testing application ;)
As mention previously create a new android project and give the values for respective fields and click on finish.
Figure 5

Now go to package explorer and Right click on the Sample project.

Figure 6

Go to Run As -> and clicks on Android Application!! WOW are we done with our application work mmmm is that possible to see our applications output???!
Answer is No…. you will get an error! As mentioned in figure 7!!!!

Figure 7
Well it is ok! ;) Since we haven’t configured our “android virtual device” emulator for test our system we got this error.
In order to tackle this, click on “Yes” Button.
Then you will get AVD Manger, where you should click “New” button in order to configure new AVD!

Figure 8
Figure 9
Click "start" on AVD Manager!

WOW you got the new anroid Emulator

Figure 10

Wait for some time until it load.... it may take 1 to 5 minutes depend on machine performance.
Figure 11


Before you get into programming… have some nice time with the AVD and experiment it!

Figure 12


Wohhwww whooww it’s awesome! It is your program in mobile!! Well done.
If you have any problem in this experiment and configuration let me know I’ll try to help you out!