Question: In Ma nActivty . java add this code findViewByld ( R . id . Subtract ) . setOnClickListener ( new android.view.View.OnClickListener ( ) { @

In ManActivty.java add this code
findViewByld(R.id.Subtract).setOnClickListener(new android.view.View.OnClickListener(){
@ Override public void onClick(android.view.View view){ android. widget.EditText InputWidget = findViewByld(
R.id. NumberO1 number01= Integer.parselnt(InputWidget.getText().toString());
InputWidget = findViewByld(R.id.NumberO2).
number02= Integer.parselnt InputWidget.getText().toString());
result = number01-number0:
android. widget.EditText OutputWidget = findViewByld(
R.id. Result);
OutputWidget.setText(Integer.toString(result));
}});
Drag from top and touch the back button to
 In ManActivty.java add this code findViewByld(R.id.Subtract).setOnClickListener(new android.view.View.OnClickListener(){ @ Override public void

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!