Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,804,576 Members 43,759 Now Online
XDA Developers Android and Mobile Development Forum

[TUT] Making a HelloWorld App Step by Step w/pictures (OUTDATED) Updated Comming Soon

Tip us?
 
rezo609
Old
(Last edited by rezo609; 6th July 2012 at 02:55 PM.)
#1  
rezo609's Avatar
Senior Member - OP
Thanks Meter 463
Posts: 359
Join Date: May 2012
Location: Dallas
Default [TUT] Making a HelloWorld App Step by Step w/pictures (OUTDATED) Updated Comming Soon

Hey guys, yet again im back with another tutuorial on how to make a Hello Android Application.

This is a step by step w/pictures tutorial which may take almost half an hour if your kinda slow. So I suggest you get a full cup of coffee.

WINDOWS


Installing Eclispe and Android SDK

Step 1: Download Eclispe and Android SDK below from the following sites:
*Android SDK
http://developer.android.com/sdk/index.html
*Eclispe
http://www.eclipse.org/downloads/pac...-372/indigosr2


Step 2: Extract both zip files


Step 3: Double Click on eclispe and what for it to load up


Step 4: Select a workspace


Step 5: Lets Install the ADT Plugin
Go to Help > Install New Software


Step 6: Click Add, in the top-right coner


Step 7: Fill in the information as follows and click OK
Code:
Name: ADT Plugin
Location: https://dl-ssl.google.com/android/eclipse/


Step 8: Tick the Checkmark box for Developer Toolsand select Next


Step 9: Select Next again.

Step 10: Read and Accept License and hit Finish


Step 11: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.

Step 12: Select Restart Now


Step 13: As you can see we have avd and sdk in eclispe!


Step 14: Select Android SDK Manager
Window > Android SDK Manager

Step 15: Tick the Tools and Android 2.3.3 Checkmark boxes and hit Install




Creating a Android Project

Step 16: In Eclipse, select File > New > Project


Step 17: Open the Android Tab and Select Android Project then hit Next


Step 18: Name the Project Name: HelloWorld and hit Next


Step 19: Select Android 2.3.3 and hit Next. I have different Android versions because I installed more than 1.


Step 20: Change the Package Name to:
Code:
com.example.helloworld
and select Finish




Editing the Application

Step 21: Open the tab HelloWorld > res > layout > main.xml . So once you open main.mxl, you will see the layout of the app.


Step 22: Start chugging on your coffee, I forgot I had coffee with me.

Step 23: Choose Screen Size, in this case I have an hvga device. Chose which fit your phone.


Step 24: Select main.xml tab and change verticle to horizontal


Step 25: Connect your phone to computer. Make sure USB Debugging is checked.

Step 26: Press Ctrl+F11 and select Android Application then hit Ok

Step 27: Congrats! You now created a HelloWorld Application!


LINUX

Just watch this badass video, much easier

http://www.youtube.com/watch?v=31cxmLN09ss

If you like this, please thank
The Following 51 Users Say Thank You to rezo609 For This Useful Post: [ Click to Expand ]
 
rezo609
Old
(Last edited by rezo609; 8th June 2012 at 07:22 PM.)
#2  
rezo609's Avatar
Senior Member - OP
Thanks Meter 463
Posts: 359
Join Date: May 2012
Location: Dallas
Thread made it live at portal!!!!

http://www.xda-developers.com/androi...eir-first-app/

Also on xda tv!!!!!!
http://www.youtube.com/watch?v=wV8_r...e_gdata_player
The Following 4 Users Say Thank You to rezo609 For This Useful Post: [ Click to Expand ]
 
varun.chitre15
Old
#3  
varun.chitre15's Avatar
Recognized Contributor / Recognized Developer
Thanks Meter 9,932
Posts: 2,844
Join Date: Oct 2011
Location: Sangli
No you are in correct section
Thanks for this
Hands itching for app development(bored of ROM Development )

Burned from my laser torch using pencil cells
Official CyanogenMod Maintainer

Like my work? Please consider a donation via Paypal

Introducing ThunderZap Works - My own website for all of my works



Contributions

Sony Xperia L (Official CM | Kernel | Kernel control app) / Samsung Galaxy S Advance: (Custom ROM | Kernel) / Micromax A110 (ROM | Kernel) / Xiaomi Mi3 (Unofficial CM)

The Following User Says Thank You to varun.chitre15 For This Useful Post: [ Click to Expand ]
 
mDroidd
Old
#4  
mDroidd's Avatar
Recognized Contributor
Thanks Meter 1,382
Posts: 1,833
Join Date: Aug 2011

 
DONATE TO ME
Maybe you could also post a note this instructions are from the Android website only with some screenshots in it?

Anyway, nicely done.

Sent from my Galaxy Nexus using Tapatalk 2
 
rezo609
Old
#5  
rezo609's Avatar
Senior Member - OP
Thanks Meter 463
Posts: 359
Join Date: May 2012
Location: Dallas
Quote:
Originally Posted by mDroidd View Post
Maybe you could also post a note this instructions are from the Android website only with some screenshots in it?

Anyway, nicely done.

Sent from my Galaxy Nexus using Tapatalk 2
I didn't use from the android website.

-rezo609
The Following 2 Users Say Thank You to rezo609 For This Useful Post: [ Click to Expand ]
 
sandervanzijl
Old
#6  
Senior Member
Thanks Meter 3
Posts: 547
Join Date: Jan 2008
I would like to suggest that you checkout Motorola motodev.
it is an eclipse based development tool aimed at developing for android.
it is not Motorola specific, but it does give you some nice extra options like code snippets.
 
shantusingh
Old
#7  
shantusingh's Avatar
Senior Member
Thanks Meter 160
Posts: 577
Join Date: Mar 2009
Location: New Delhi, IN

 
DONATE TO ME
Quote:
Originally Posted by rezo609 View Post


Just watch this badass video, much easier

http://www.youtube.com/watch?v=31cxmLN09ss

If you like this, please thank
thank you for the amazing guide, appreciate the same but this is just for hello world app.. how to be able to make even normal apps like cache cleaner, file manager, any game, installer, un-installer, etc . Can i get to know on that with this guide what more i would need to add, etc?!

Regards
Don't Forget To Press Thanks

Htc One M7 801n Silver 32 GB
Nexus 7 FHD 2013
Samsung Galaxy Grand I9082
Micromax A110 Canvas 2
 
rezo609
Old
(Last edited by rezo609; 9th June 2012 at 03:52 PM.)
#8  
rezo609's Avatar
Senior Member - OP
Thanks Meter 463
Posts: 359
Join Date: May 2012
Location: Dallas
Quote:
Originally Posted by shantusingh View Post
thank you for the amazing guide, appreciate the same but this is just for hello world app.. how to be able to make even normal apps like cache cleaner, file manager, any game, installer, un-installer, etc . Can i get to know on that with this guide what more i would need to add, etc?!

Regards
I'm not sure how to make those apps srry, I'm basically learning right now and since I successfuly made a hello world app, I decided to share it.

BTW, I'm not the maker of that video

-rezo609
The Following 2 Users Say Thank You to rezo609 For This Useful Post: [ Click to Expand ]
 
Dod6
Old
#9  
Dod6's Avatar
Senior Member
Thanks Meter 59
Posts: 295
Join Date: Feb 2011
It is really usefull tutorial. I can't wait for more!
HTC One X User | Sony Xperia Tablet S User
 
shantusingh
Old
#10  
shantusingh's Avatar
Senior Member
Thanks Meter 160
Posts: 577
Join Date: Mar 2009
Location: New Delhi, IN

 
DONATE TO ME
Quote:
Originally Posted by rezo609 View Post
I'm not sure how to make those apps try, I'm basically learning right now and since I successfuly made a hello world app, I decided to share it.

BTW, I'm not the maker of that video

-rezo609
no issues thank you for this ...

Cheers!
Don't Forget To Press Thanks

Htc One M7 801n Silver 32 GB
Nexus 7 FHD 2013
Samsung Galaxy Grand I9082
Micromax A110 Canvas 2

The Following 2 Users Say Thank You to shantusingh For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes