I have one issues displaying a progress dialog in a thread.
I need to get the latitude and longitude either from SIM or from GPS. I do this process(fetching lat and long) in an async task(seperate thread) ..fetching co-ordinates works perfect... I have given the classes which I am using in the links given below..my question is, I need to show the progress dialog, until the entire background process is finished..so, I start my progress dialog in pre execute and dismisses the dialog in post execute..
but the issue i have is, the progress dialog gets dismissed before the required task of getting latitude and longitude is finished(ie; before the latitude and longitude gets printed inside the doinbackground method ). I do not know why!
I know that this is a quick java fix,
My front end class -- http://pastebin.com/iVTBmBKt
My location fetching class -- http://pastebin.com/PAs2FQXv
Anyone who can help me resolve this will be well appreciated with points for sure.
Any queries/clarifications, please let me know..