Here is the link of things you need: To create a simple Hello World app, follow these steps: You can download Eclipse IDE at this link: http://www.eclipse.org/downloads/packages/eclipse-classic-372/indigosr2 Make sure Eclipse is closed. On Windows 7, go to C:\Users\ Download the SDK which matches the version on your phone. Other possibility is to use an emulator. But the main disadvantage of that possibility is slow loading: for every change you make in the source code and wish to test it, you have to wait 2-3 minutes (depending on your computer's speed) for the emulator to load. To configure your phone for testing, do as follows: Setting -> Applications -> Development -> tick USB debugging Then connect your phone to your PC with an USB cable. Click File -> New Android project. Enter the name of your project. Choose the SDK that matches Android version on your phone. Add a name of your package. ADT plugin has created the main activity for you. That code is executed when the application starts. Delete this line: And add these 3: Eclipse will prompt you to import the required library for TextView. Just click on the light bulb on the left and double click "Import 'TextView'". Click Run->Run or press Ctrl+F11. Select your device. And that's it! Check your phone to see the results.
If you have some basic Java knowledge, it's quite easy to create a simple Android app. Technically, you don't even have to have an Android Smartphone, because you can run and test your app in an emulator. Nevertheless, having a smartphone is a better option.
1)Download Eclipse
2) Download Android ADT plugin
https://dl-ssl.google.com/android/eclipse/
Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.3)Download Android SDK
4) Configure the phone
5) Open a new Android project
6) Add some code
setContentView(R.layout.main);
TextView tv = new TextView(this);
tv.setText("Hello, Android");
setContentView(tv);
7) Run the app
Tuesday 22 May 2012
How To Create an Android App
:)
:(
;)
:D
;;-)
:-/
:x
:P
:-*
=((
:-O
X(
:7
B-)
:-S
#:-S
7:)
:((
:))
:|
/:)
=))
O:-)
:-B
=;
:-c
:)]
~X(
:-h
:-t
8-7
I-)
8-|
L-)
:-a
:-$
[-(
:O)
8-
2:-P
(:|
=P~
#-o
=D7
:-SS
@-)
:^o
:-w
7:P
2):)
X_X
:!!
\m/
:-q
:-bd
^#(^
:ar!
0 comments:
Post a Comment