You are on page 1of 1

A simple program to add two numbers in Android

Procedure:
1. Start Eclipse IDE.
2. Create a new project.
3. Create a MainActivity.java file.
4. Create an activity_main.xml file for layout design.
5. Add a button and three TextView fields in the XML layout.
6. Then look up the button and EditText fields by their ids in the MainActivity.java file.
7. Then define an addition code in the onClick function.

You might also like