[Solved] Handler as a method parameter

From dispatchGesture doc, callback AccessibilityService.GestureResultCallback: The object to call back when the status of the gesture is known. If null, no status is reported. handler Handler: The handler on which to call back the callback object. If null, the object is called back on the service’s main thread. That basically means, if you don’t provide … Read more

[Solved] Change text after a while on Activity start

For the purpose of app responsiveness, as stated in the official documentation on Processes and Threads, it is not recommended to block the UI-thread (for example by calling Thread.sleep()) longer than a few seconds. As also described in the article provided there are several options to avoid that, one of which is to use Handler.postDelayed(Runnable, … Read more