Forum     

Go Back   Digit Technology Discussion Forum > Community > Tutorials
Register FAQ Calendar Mark Forums Read

Tutorials This section offers tutorials and How to's on just about anything related to computers and IT. Note: All tutorials are courtesy the posters and not verified by Digit


Reply
 
LinkBack Thread Tools Display Modes
Old 28-12-2010, 07:45 AM   #1 (permalink)
Right Off the Assembly Line
 
Join Date: Dec 2010
Posts: 12
Default 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".

For more details and screenshots visit:
infiniteZest.com: A few basic imports in an Android application program
Working with Android- Part 2: Creating your first program ‘Hello Android’ ~ The IT Domain

Thanks
thomas6188 is offline   Reply With Quote
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Who
- by Krow
- by clmlbx
- by Tech&ME
- by icebags

Advertisement




All times are GMT +5.5. The time now is 08:51 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2