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. The Java code creates a new class and inherits the activity through 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, adding listener events to the button class, and passing the values of two input boxes to the second interface through 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