hello everyone ,
here we are now to the final step of development, ie, adding the functionality, thinking it the logical way what actualy we want our app to do ?
to increment the counter and display the value in text (On addition)
to decrement the counter and display the value in text (On subtraction)
for addition :-
check to see if you have missed anything
here we are now to the final step of development, ie, adding the functionality, thinking it the logical way what actualy we want our app to do ?
to increment the counter and display the value in text (On addition)
to decrement the counter and display the value in text (On subtraction)
Getting to work
In the onClickListener method, below the "// TODO Auto-generated method stub"define the funtionalityfor addition :-
counter++;for subtraction :-
display.setText("your total is "+counter);
counter--;the code will look like this
display.setText("your total is "+counter);
check to see if you have missed anything
EXECUTING THE APP
- select the application from package explorer
- right click > Run as > 1 Android application
- The app will load onto the Emulator











