Jun 12, 2014

Android Hello World

Before Getting Into Android Development First You Must Setup The Environment For Android Development.Following Software Components Needed.
       
      1. Java Development Kit (JDK)
      2. Get The ADT Bundle Download

Extract ADT Bundle and Click Eclipse. It Will Open The Eclipse and Ask For A Work Space.



         Work Space is The Folder Where Your Project File Is Gonna Stored.You Can Select Any Folder As You Wish and You Can Change Your Work Space Anytime.In My Example I've Created A Folder Called Test In My D Drive I Selected That As My Work Space.After The Work Space Selection It Will Open The Eclipse Main Window For You.

To Create A New Android Project Go To File --> New --> Android Application Project
Then It Will Open A Window Like Below.


  

Now Specify Relevant Information In That Window.Application Name The Name Of The Application That Your Going To Create.In My Case I'm Going To Give As 'Hello World'.Then It Will Automatically Fill The Project Name and Package Name.

In The Minimum Required SDK Field We Have To Specify The Minimum Requirement To Run This Application In Android Based Mobile.In My Case I'm Selecting API Level 9.In The Target SDK  Field We Have To Specify The SDK Level In The Android Mobile.In The Compile With Field You Have To Select The API Level That You Have.In My Case I Only Have The API Level 19 Latest At The Moment.Finally It Will Apear Like Below.




Then Click The 'Next' Button.It Will Open Another Window.



Click The 'Next' Button Again.Then It Will Open Another Window.



Click The 'Next' Button Again.Then It Will Open Another Window.



Click The 'Next' Button Again.Then It Will Open Another Window.




Finally Click The 'Finish' Button.Then It Will Open The Application Window.




      To Test Our Application We Need Virtual Android Device, Or Else You Can Connect Your Android Mobile Phone Too.To Create A New Virtual Android Device Go To Window --> Android Virtual Device Manager.Then It Will Open A Window Like Below.



To Create A New Android Virtual Device Click The 'New' Button In The Right Corner.Then It Will Open Another Window Like Below.



Enter The Following Details To Create A New Device.


Then Click 'OK' Button.You Will End Up The Window Like Below.


Then Select The AVD Name and Click The 'Start' Button.



Now It Will Ask To Launch The Virtual Device.Click The 'Launch' Button.


It Will Start You A Virtual device Now.



Now To Test Our Application Follow The Below Steps.









Now Double Click The Android Application In The Right Side.


Browse The Project By Clicking the 'Browse' Button.


Now Press 'OK' Button.Click The 'Target Tab' To Select The Target Device.


Click The 'AVD Name Check Box' True and Click The 'Apply' Button.Then Click The 'Run' Button.This Only In First Time Configuration.In Next Time You can Do The Following Steps.



Now You Will See The Your Application Is Running In The Device.



If You Go To Application Window You Will See Our New Application Hello World Installed.




Now You May Got A Basic Knowledge About Android Application Development. Start Develop New Applications.

No comments:

JWT Token Decode Using Jquery

When it come to authentication we use many mechanism. Ones the user authenticated we must keep these details somewhere safe. So we can share...