Thursday 4 April 2013

Hello to the Android World!


This is my first post on my new blog "Android for Beginners". The reason behind creating this blog is to help the beginners in the android development. I have just started learning Android and know what the problems beginners face. 
Here is my first post: Say "Hello to the Android World!"

Before getting into the details, first we will create a simple application to say Hello World!. This is just a simple introductory example in which we will create and run one application. (We will get into the details in the up coming posts.)

A. Installation (Windows):
1. Install Java Development Kit. 
2. Download the Android SDK. (http://developer.android.com/sdk/index.html)
3. Unzip the downloaded file. There two folders namely eclipse and sdk and one file namely SDK Manager.
4. Open the eclipse folder. Double click on the eclipse.exe file. Select the required workspace or if you want keep the default one. 

You will see the window similar as below:

 
B. Application Development:
1. Go File --> New --> Android Application Development.
Give the proper values for the Application Name, Project Name, Package Name. Set the minimum required SDK, Target SDK, Compile with and Theme as stated in the above image. Always set the target SDK to the latest available.

 2. Click Next.

 Browse the location where you want to save the project.

3. Click Next.

Here you can set the launcher icon. You can select an Image from your machine or you can create your own icon.

4. Click Next.
Here you will specify the activity. This time select the Blank Activity.

5. Click Next.
 

Specify the Activity Name i.e. the Java class, Layout Name i.e XML file and Navigation Type to None. Click Finish.

6. You will find something like this:

   
Now go to the Package Explorer, Right click on the project i.e. HelloWorldApp. Select Run As --> Android Application. You will be prompted with the following message,

  
The above mentioned window is displayed because we haven't specified the compatible target yet. To do this click No. You will be prompted with the following window:


Close the Window.
Go to Window --> Android Virtual Device Manager.

 Click New.
Specify the details as mentioned in the above mentioned image. You can specify whatever name you want in the AVD Name. Click OK. It will take some time to set.

Close the window.
Again go to Package Explorer. Right click on your project. Go to Run  As --> Run Configurations...

Go to Android Application --> HelloWorldApp --> Target --> Select Automatically pick compatible device: Always uses preferred AVD if set below, launches on compatible device/AVD otherwise.
Select AVD_1 --> Click Apply -- Click Run.

Your application will run in the emulator:

  
 

 

19 comments:

  1. Existing without the answers to the difficulties you’ve sorted out through this guide is a critical case, as well as the kind which could have badly affected my entire career if I had not discovered your website
    full Stack developer Training in Bangalore

    ReplyDelete
  2. I appreciate your efforts because it conveys the message of what you are trying to say. It's a great skill to make even the person who doesn't know about the subject could able to understand the subject . Your blogs are understandable and also elaborately described. I hope to read more and more interesting articles from your blog. All the best.


    rpa Training in annanagar

    blue prism Training in annanagar

    automation anywhere Training in annanagar

    iot Training in annanagar

    rpa Training in marathahalli

    blue prism Training in marathahalli

    automation anywhere Training in marathahalli

    blue prism training in jayanagar

    automation anywhere training in jayanagar







    ReplyDelete
  3. Thanks for your informative article, Your post helped me to understand the future and career prospects & Keep on updating your blog with such awesome article.
    Click here:
    python training in velachery
    Click here:
    python training in OMR

    ReplyDelete
  4. I appreciate your efforts because it conveys the message of what you are trying to say. It's a great skill to make even the person who doesn't know about the subject could able to understand the subject . Your blogs are understandable and also elaborately described. I hope to read more and more interesting articles from your blog. All the best.
    Blueprism training in velachery

    Blueprism training in marathahalli


    AWS Training in chennai

    ReplyDelete
  5. I have picked cheery a lot of useful clothes outdated of this amazing blog. I’d love to return greater than and over again. Thanks! 
    java training in omr | oracle training in chennai

    java training in annanagar | java training in chennai

    ReplyDelete
  6. Its really an Excellent post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog. Thanks for sharing....
    python training in rajajinagar
    Python training in btm
    Python training in usa
    Python training in marathahalli
    Python training in pune

    ReplyDelete
  7. Wonderful bloggers like yourself who would positively reply encouraged me to be more open and engaging in commenting.So know it's helpful.
    java training in jayanagar | java training in electronic city

    java training in chennai | java training in USA

    ReplyDelete
  8. I really like the dear information you offer in your articles. I’m able to bookmark your site and show the kids check out up here generally. Im fairly positive theyre likely to be informed a great deal of new stuff here than anyone
    Blueprism online training

    Blue Prism Training in Pune

    ReplyDelete
  9. Hmm, it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well as an aspiring blog writer, but I’m still new to the whole thing. Do you have any recommendations for newbie blog writers? I’d appreciate it.

    AWS Interview Questions And Answers

    AWS Training in Bangalore | Amazon Web Services Training in Bangalore

    AWS Training in Pune | Best Amazon Web Services Training in Pune

    Amazon Web Services Training in Pune | Best AWS Training in Pune

    AWS Online Training | Online AWS Certification Course - Gangboard

    ReplyDelete
  10. Thanks for the good words! Really appreciated. Great post. I’ve been commenting a lot on a few blogs recently, but I hadn’t thought about my approach until you brought it up. 
    python training in velachery | python training institute in chennai

    ReplyDelete
  11. Nice tips. Very innovative... Your post shows all your effort and great experience towards your work Your Information is Great if mastered very well.
    Microsoft Azure online training
    Selenium online training
    Java online training
    Python online training
    uipath online training

    ReplyDelete
  12. Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging. If anyone wants to become a .Net developer learn from Dot Net Training in Chennai. or learn thru ASP.NET Essential Training Online . Nowadays Dot Net has tons of job opportunities on various vertical industry.Automation Anywhere Training in Bangalore

    ReplyDelete
  13. This blog is the general information for the feature. You got a good work for these blog.We have a developing our creative content of this mind.Thank you for this blog. This for very interesting and useful.keep on update a lot.
    Ai & Artificial Intelligence Course in Chennai
    PHP Training in Chennai
    Ethical Hacking Course in Chennai Blue Prism Training in Chennai
    UiPath Training in Chennai

    ReplyDelete