I need to stop this code somehow is there any way to do this. I'm not in tune with threads if someone could answer the question and post a link to where you can learn threading, but not at the beginning level ive read many books on java the basics kinda come at an ease, except file changing stuff like BufferedWriters and stuff. So anything that could fine tune the basics or where to go from there. sorry i have a question in a question. :)
private final Runnable updateCircle = new Runnable() {
@Override
public void run() {
lastColor = random.nextInt(2) == 1 ? redColor : greenColor;
paint.setColor(lastColor);
invalidate();
handler.postDelayed(this, 1000);
}
};