Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
lwc:programming:mobile:android:threads [2022/01/17 17:11] – John Harrison | lwc:programming:mobile:android:threads [2022/05/11 19:03] (current) – John Harrison | ||
---|---|---|---|
Line 3: | Line 3: | ||
==== Run a routine every second ==== | ==== Run a routine every second ==== | ||
=== With Handler === | === With Handler === | ||
- | //I assume since this is with '' | ||
< | < | ||
final Handler handler = new Handler(); | final Handler handler = new Handler(); | ||
Line 16: | Line 15: | ||
</ | </ | ||
=== With Timer === | === With Timer === | ||
- | //Does this run in separate thread?// | ||
< | < | ||
new Timer().scheduleAtFixedRate(new TimerTask() { | new Timer().scheduleAtFixedRate(new TimerTask() { | ||
Line 37: | Line 35: | ||
An interface wouldn' | An interface wouldn' | ||
+ | ===== References ===== | ||
+ | * [[https:// | ||
+ | |||
+ | ===== Not Completely Digested ===== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// |