Technology, books, travel, and linguistics


#all #Programming

Android: Always show toasts on the background thread

I used to call Toast#show() on the UI thread. Then one day, I received notifications related to an ANR (Application Not Responding) error in one of my Android apps. at android.os.BinderProxy.transactNative( at android.os.BinderProxy.transact( at android.view.accessibility.IAccessibilityManager$Stub$Proxy.addClient( at android.view.accessibility.AccessibilityManager.tryConnectToServiceLocked( at android.view.accessibility.AccessibilityManager.( at […]