Demand Analysis: Enter two numbers, multiply them, and get results
First build an Android project to create the first interface in layout the interface has four components, two EditText a textview, and one Buutton. and set its ID. Create a new class in Java code and inherit the activity the Setcontentview (R.layout.activity_main) method is associated with the first interface, creating four objects that are associated with four components through the Findviewbyid () method. Add a listener event to the button class and pass the values of the two input boxes to the second interface via the intent object
Create a new interface add a TextView component create a new class to inherit the activity class, and associate the second interface with the Getintent () method to get the intent object, multiply the obtained value by a health fetch value, and set the value to the TextView display. Program is programmed to complete
The first Android program was written