Results 1 to 3 of 3

Thread: Working with Android- Part 2: Creating your first program ‘Hello Android’

  1. #1
    thomas6188 Guest

    Working with Android- Part 2: Creating your first program ‘Hello Android’

    Hi,
    In one of my earlier post, I have discussed the configuration and installation of Android SDK in Eclispe IDE. In this post we shall be creating our first android program.

    Step1: Starting a new project
    1. New->Project->Android Project
    A window opens up for filling the details about the new project.
    2. Fill the required details.

    Step2: Coding the program ‘Hello Android’
    1. Explore your project on the left side panel.
    2. Under the src directory, look for the activity page, in this case ‘hello.java’. Double click to open.
    3. A java page opens up which consist of some pre written code. We have to write our code in this page.
    4. Now you have to create a new Text View instance.
    5. Write the below code after “super.onCreate(savedInstanceState);”
    6. Our code
    “TextView tv = new TextView(this);
    tv.setText("Congratulations! You have created your first Android program");
    setContentView(tv); “

    Step3: Running the program
    1. Run-->Run in the Run as window select "Android Application".

  2. #2
    Join Date
    Feb 2011
    Posts
    142

    Re: Working with Android- Part 2: Creating your first program ‘Hello Android’

    The steps motioned in the post proved really helpful since I am learning to program in Android and the first program of mine use to give errors on frequent basis but following the directions mentioned by you I was able to run my first program on Android.

  3. #3
    Join Date
    Nov 2009
    Posts
    4,494

    Re: Working with Android- Part 2: Creating your first program ‘Hello Android’

    When developing applications for Android is better to have knowledge of Java, since the applications are developed in this language. To develop applications in this system, we must have a basic knowledge of Java, since this is the language that uses Android applications. As a development environment Eclipse seems more comfortable because I'm used to it and because the Android Eclipse plugin is very complete.

Similar Threads

  1. Need a sms spy program for an android phone with HelloSpy
    By sweety2438 in forum Portable Devices
    Replies: 3
    Last Post: 13-11-2014, 06:05 PM
  2. Need a sms spy program for an android phone
    By Burt/Bert in forum Portable Devices
    Replies: 5
    Last Post: 17-04-2013, 09:10 AM
  3. Replies: 5
    Last Post: 18-08-2011, 12:11 AM
  4. Replies: 4
    Last Post: 05-02-2011, 06:41 AM
  5. Working with Android : Part 1 -Installation and Configuration
    By thomas6188 in forum Guides & Tutorials
    Replies: 1
    Last Post: 29-12-2010, 06:34 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,399,426.99437 seconds with 17 queries