Android font flashing animation, using threads and timer implementations
public class Activitymain extends activity {public void onCreate (Bundle savedinstancestate) {super.oncreate
(savedinstancestate);
Setcontentview (R.layout.main);
Spark ();
private int clo = 0;
public void Spark () {final TextView touchscreen = (TextView) Findviewbyid (R.ID.TEXTVIEW01);//Get Page TextView Object
Timer timer = new timer ();
TimerTask taskcc = new TimerTask () {public void run () {Runonuithread (new Runnable () {
public void Run () {if (Clo = 0) {clo = 1; Touchscreen.settextcolor (color.transparent); Transparent} else {if (Clo = 1) {CLO = 2
;
Touchscreen.settextcolor (color.red);
else {clo = 0; Touchscreen.settextcolor (Color.green);
}
}
}
});
}
}; Timer.schedule (TASKCC, 1, 300); Parameters are delay (how long after execution), duration (execution interval)}}