This shows you the differences between two versions of the page.
fss:sessions:session4-android [2019/07/11 16:24] beniamin.dobre |
fss:sessions:session4-android [2019/07/11 18:36] (current) beniamin.dobre [Handlers and Runnables] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Android Session 3: Bluetooth Low Energy Communication ====== | + | ====== Android Session 4: Data Management ====== |
- | {{:fss:sessions:android_bluetooth_low_energy_communication.pdf|Slides}} | + | {{:fss:sessions:android__data_management.pdf|Slides}} |
===== Objectives ===== | ===== Objectives ===== | ||
Line 99: | Line 99: | ||
HandlerThread thread = new HandlerThread("I handle things"); | HandlerThread thread = new HandlerThread("I handle things"); | ||
thread.start(); | thread.start(); | ||
- | writeHandler = new Handler(thread.getLooper()); | + | Handler writeHandler = new Handler(thread.getLooper()); |
writeHandler.postDelayed(new Runnable() { | writeHandler.postDelayed(new Runnable() { | ||
Line 127: | Line 127: | ||
- Load data on a different thread (not on the UI thread) | - Load data on a different thread (not on the UI thread) | ||
- Set the list of records to the adapter on the UI thread | - Set the list of records to the adapter on the UI thread | ||
+ | |||
+ | ===== Files ===== | ||
+ | {{:fss:sessions:android_4_start.zip|}} |