Here is my guess. Cannot be very specific unless you post the codes:
In the doInBackground method, it calls MainActivity.addToListview method, which modifies UI and some object isn’t ready yet. The null object may depend on your async task finishing or you forgot to set it up?
1
solved if i run method in doinbackgroundand when it is running i am click any button then i got error…how to solve? [closed]