class BTCSync extends Thread{
public void run(){
while(!BTC && MainPage.BTC){
TextView BTCPer = (TextView) findViewById(R.id.lblBTCPer);
BTCPer.setText(BTCProgress+"%");
if(BTCProgress == 100) {
BTCPer.setText("100%");
BTC = true;
}
}
}
}
The error is where findViewById
my label is lblBTCPer.
The reason I have it in run()
is that this block needs to run until the value hits 100.
I know that usually, you would have to throw in the View v but then it would negate the void run().
I looked for a few solutions but I haven't found a working example.
I also believe I posted this already just yesterday but I can't seem to find it anywhere. It's not under my account and I distinctly remember posting it and waiting for responses.