• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Help with my first app

I have recently started developing for Android and have many questions involving my new app. It is a clicker kind of game with 3 buttons: get money, buy upgrade, and buy auto clicker. The get money button adds one value to your total money above the button, the buy upgrade button adds one value to the amount you get each click on get money, and the buy auto clicker (is supposed to) add 1 to your money total each second. Currently the auto clicker does add one to the value but not visably ex. I buy 1 auto clicker and nothing happens but when I wait 5 seconds and click get money I get 5 more dollars than I would normally. My first question is how do I make the textview total money be real-time instead of updating only when the get money button is clicked
 
Yes here is a running screen of it
 

Attachments

  • 1435014619602.jpg
    1435014619602.jpg
    82.2 KB · Views: 98
you should update your view everytime you increment the value
eg:
numtest + = d;
v.setText(Integer.toString(numtest));
 
Back
Top Bottom