Thursday, 26 December 2013

how to make simple android app in 9 minute

For making any android apps you should have ADT bundle. you can download form here https://developer.android.com/sdk/index.html . after downloading extract the zip file.

You can watch video also :http://www.youtube.com/watch?v=wjACU_7u7F4

Step 1:
Open eclipse and go to File > new >Android application project . and select the application name for example "simple"and next-next.

Step 2:
add one EditText box and two button on the activity_main.xml . and add onclick on both the button.
(for eg. "hi" on one button and "reset" on other button )

Step 3:
Declare the EditText in MainActivity.java  and also make onclick function.

EditText e1;
e1=(EditText) findViewById(R.id.editText1);

public void hi(View v)
{
e1.setText("hiii....");
}

public void reset(View v)
{
e1.setText("");
}

Step 4:
Run MainActivity.java file.your apps is ready.

More apps code here : http://editandroidcode.blogspot.com , http://androidmain.blogspot.com/

1 comment:

  1. hi this is Aravind , and i want to talk with you some important matter and you can find me at aravind.dussani@gmail.com or my contact number is +91 8333 0123 16 please call me or mail me your contact number i will contact and see my website before you calling www.hacksnbooks.blogspot.com

    please brother contact me....

    thanks & regards ,,
    D.Aravinda Reddy,
    Andhra Pradesh....

    ReplyDelete