Post Reply

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

3rd June 2012, 03:20 PM   |  #1  
rezo609's Avatar
OP Senior Member
Flag Dallas
Thanks Meter: 463
 
359 posts
Join Date:Joined: May 2012
More
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
Last edited by rezo609; 6th July 2012 at 02:55 PM.
The Following 51 Users Say Thank You to rezo609 For This Useful Post: [ View ]
3rd June 2012, 03:21 PM   |  #2  
rezo609's Avatar
OP Senior Member
Flag Dallas
Thanks Meter: 463
 
359 posts
Join Date:Joined: May 2012
More
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
Last edited by rezo609; 8th June 2012 at 07:22 PM.
The Following 4 Users Say Thank You to rezo609 For This Useful Post: [ View ]
3rd June 2012, 03:38 PM   |  #3  
varun.chitre15's Avatar
Recognized Contributor / Recognized Developer
Flag Sangli
Thanks Meter: 10,152
 
2,882 posts
Join Date:Joined: Oct 2011
More
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
The Following User Says Thank You to varun.chitre15 For This Useful Post: [ View ]
3rd June 2012, 04:29 PM   |  #4  
mDroidd's Avatar
Recognized Contributor
Thanks Meter: 1,383
 
1,833 posts
Join Date:Joined: 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
3rd June 2012, 04:58 PM   |  #5  
rezo609's Avatar
OP Senior Member
Flag Dallas
Thanks Meter: 463
 
359 posts
Join Date:Joined: May 2012
More
Quote:
Originally Posted by mDroidd

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: [ View ]
7th June 2012, 07:54 PM   |  #6  
Senior Member
Thanks Meter: 3
 
547 posts
Join Date:Joined: 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.
7th June 2012, 08:32 PM   |  #7  
shantusingh's Avatar
Senior Member
Flag New Delhi, IN
Thanks Meter: 160
 
578 posts
Join Date:Joined: Mar 2009
Donate to Me
Quote:
Originally Posted by rezo609



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
7th June 2012, 08:43 PM   |  #8  
rezo609's Avatar
OP Senior Member
Flag Dallas
Thanks Meter: 463
 
359 posts
Join Date:Joined: May 2012
More
Quote:
Originally Posted by shantusingh

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
Last edited by rezo609; 9th June 2012 at 03:52 PM.
The Following 2 Users Say Thank You to rezo609 For This Useful Post: [ View ]
7th June 2012, 08:45 PM   |  #9  
Dod6's Avatar
Senior Member
Thanks Meter: 59
 
295 posts
Join Date:Joined: Feb 2011
More
It is really usefull tutorial. I can't wait for more!
7th June 2012, 08:57 PM   |  #10  
shantusingh's Avatar
Senior Member
Flag New Delhi, IN
Thanks Meter: 160
 
578 posts
Join Date:Joined: Mar 2009
Donate to Me
Quote:
Originally Posted by rezo609

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!

The Following 2 Users Say Thank You to shantusingh For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Android Software and Hacking General [Developers Only] by ThreadRank