Fetch icon indicating copy to clipboard operation
Fetch copied to clipboard

Can't toast on a thread that has not called Looper.prepare()

Open cristmasbox opened this issue 1 year ago • 1 comments
trafficstars

I'm working on an app which should download some files, but allways if i try it it gets this Error from the FetchListener:

java.lang.NullPointerException: Can't toast on a thread that has not called Looper.prepare()

I have checked, all inputs aren't null and I can't find a solution. Can anyone help me?

cristmasbox avatar Feb 16 '24 09:02 cristmasbox

@cristmasbox Fetch listener methods are called on a background thread for performance reasons. You would need to run any UI logic on the main thread.

tonyofrancis avatar Dec 03 '24 01:12 tonyofrancis