***Last updated on 11 May 2013 ***

Friday, 29 March 2013

PART 4 : the finishing touch

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)

 Getting to work

In the onClickListener method,  below the "// TODO Auto-generated method stub"define the funtionality
for addition :-
                counter++;
                display.setText("your total is "+counter);
for subtraction :-
                 counter--;
                display.setText("your total is "+counter);
 the code will look like this
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

thus we come to the end of making this app , this isnt much diffficult one but its very nice one to basically, explain the steps required in every android app. 

For any query comment below , and subscribe for more android development

cheers :)

2 comments:

  1. Wonderful tutorial, i completed it. Please post a new one, thanks.

    ReplyDelete
    Replies
    1. Working on it coming soon :) thanxxx for commenting have a wonderful learning..

      Delete