Android Timer schedule random,recreate(), etc
Android Timer schedule |
Android Timer schedule random,recreate(), etc
Code Example:
ScheduledExecutorService service = Executors.newSingleThreadScheduledExecutor();
service.scheduleAtFixedRate(new Runnable() {
@Override
public void run() {
runOnUiThread(new Runnable() {
@Override
public void run() {
// code recreate();
}
});
}
},6,6,TimeUnit.SECONDS);
HOME
Post a Comment