Back to project page FindYourWords.
The source code is released under:
Apache License
If you think the Android project FindYourWords listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package win; //w ww .j av a 2s. co m public class DialogWinThread extends Thread { private volatile Thread blinker; int i=0; public void start() { blinker = new Thread(this); blinker.start(); } public void stopIt() { blinker = null; } public void run() { Thread thisThread = Thread.currentThread(); while (blinker == thisThread) { DialogWin.image.updatePosition(i++); try { sleep(20); } catch (InterruptedException e) { e.printStackTrace(); } } } }