increase status textview everytime moneynum variable is increased by 100?
<p>alright so im making an android app, and basically everything is working fine expect the whole part about changing the status textview everytime "moneynum" is increased by 100. Heres my code:</p>

<pre><code>package life.project;



import android.app.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import android.widget.ViewFlipper;
public class LifeActivity extends Activity {
/** Called when the activity is first created. */
ViewFlipper views;
int lifestatus=0;
TextView status;
Button main;
Button work;
TextView timer;
int moneynum=0;
int test=0;
Button GasStation;
Button Walmart;
Button Business;
TextView Moneycount;
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.main);
    main=(Button) findViewById(R.id.button9);
    views=(ViewFlipper) findViewById(R.id.viewFlipper1);
    GasStation=(Button) findViewById(R.id.button13);
    Walmart=(Button) findViewById(R.id.button23);
    Business=(Button) findViewById(R.id.button33);
    Moneycount=(TextView) findViewById(R.id.textView);
    timer=(TextView) findViewById(R.id.textView3);
    status=(TextView) findViewById(R.id.textView4);
    work=(Button) findViewById(R.id.button1);
    new CountDownTimer(1200000, 60000) {

        public void onTick(long millisUntilFinished) {
            timer.setText("Minutes remaining: " + millisUntilFinished / 60000);
        }

        public void onFinish() {
            onPause();{
            Intent timerends=new Intent("com.life.project.timesup");
            startActivity(timerends);
            finish();
            }
        }
     }.start();
     main.setOnClickListener(new View.OnClickListener() {

        public void onClick(View v) {
            // TODO Auto-generated method stub
            views.showPrevious();
        }
    });
     work.setOnClickListener(new View.OnClickListener() {

        public void onClick(View v) {
            // TODO Auto-generated method stub
            views.showNext();
        }
    });
        GasStation.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                // TODO Auto-generated method stub
                moneynum+=5;
                Moneycount.setText("Money:$ "+moneynum+" .00");
                if(moneynum==moneynum+100){
                    lifestatus+=1;
                    status.setText("Status: "+lifestatus);
                }
            }
        });
        Walmart.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                // TODO Auto-generated method stub
                moneynum+=10;
                Moneycount.setText("Money:$ "+moneynum+" .00");
                if(moneynum==moneynum+100){
                    lifestatus+=1;
                    status.setText("Status: "+lifestatus);
                }
            }
        });
        Business.setOnClickListener(new View.OnClickListener() {

            public void onClick(View v) {
                // TODO Auto-generated method stub
                moneynum+=20;
                Moneycount.setText("Money:$ "+moneynum+" .00");
                if(moneynum==moneynum+100){
                    lifestatus+=1;
                    status.setText("Status: "+lifestatus);
                }
            }
        });

}
}
</code></pre>

<p>and heres the part where its not working:</p>

<pre><code>  Moneycount.setText("Money:$ "+moneynum+" .00");
                if(moneynum==moneynum+100){
                    lifestatus+=1;
                    status.setText("Status: "+lifestatus);
                }
</code></pre>

<p>so everytime moneynum is increased by 100 i want lifestatus to increase by one and go through the rest of the code. But the if statement isnt executing when i run the program, and i think its because i have the arguments of the if statement wrong..can someone figure out i could make this work? sorry if this is confusing.</p>
