Pause or delay in UI thread (Android) — May 14, 2018

Pause or delay in UI thread (Android)

In my Android apps, I want to pause or delay a process before continuing to the next process. Previously, I utilized Thread.sleep(), but it is not recommended by some experts due to the effect of some elements may stop responding and furthermore will behave unexpectedly. Let’s see the solution below. Continue reading

Advertisements
Keep a list of object in SharedPreferences and TinyDB (Android) —

Keep a list of object in SharedPreferences and TinyDB (Android)

In my  Android application project, I need a solution how to keep a list of the object can be accessed from any activities. Initially, I download the list from the server, then I want the app just read the downloaded data without contacting the server again. We cannot put the list of the object directly into SharedPreferences. There are some solutions that I found on the forum. Let’s see. Continue reading

Show AlertDialog from Custom Adapter Android (AppCompat style) — February 21, 2018
How to send POST request in Postman app (problem: missing parameter) — February 20, 2018
[Ubuntu] Solve problem ” /var/lib/dpkg/lock – open (13: Permission denied) “ — February 15, 2015
[Ubuntu] Solve problem “How to Mount Windows 8’s OS Partition in Ubuntu 12.04 and later” — January 15, 2015
[Ubuntu] Install TLP : Saving battery more for our ubuntu — December 15, 2014
Learning Class Diagram — November 17, 2014
Learning Sequence Diagram — November 3, 2014
How to Install WindowBuilder on Eclipse Luna — October 21, 2014