Question: What does the following exception mean; how can I fix it? This is the code: This is the exception: Best Answer: You need to call Toast.makeText(...) from the UI thread: This is copy-pasted from another (duplicate) SO answer. If ...
Question: I have a ProgressBar in .xml that I want to show when a long-running operation. I use to set its visibility in some onButtonClick method. If the above code is all that is in the method, it works just ...