I have a little problem with AlertDialogs in my application. So here is my situation :
I have a Synchronization Acitivity which one is connections to a web service via HttpURLConnection and parsing the result from it in different classes. So if the server is response is some kind of error I have an RPCErrorPacket which will handle that, but it’s not an activity. The parsing of whole response is done in a single thread and I need to find a way to create an AlertDialog from RPCErrorPacket which will shown in Synchronization Activity.
Any ideas if it’s possible or how can I achieve something like this?
Here is how I’m doing this :