thanks for the replies I ended up going the AsyncTask rout and it worked like a charm
On Mar 23, 1:52 am, "j.s. mammen" <mamm...@gmail.com> wrote: > Is the connection to the server in seperate thread than the UI? If > not, one of the way to do is described > herehttp://developer.android.com/reference/android/os/AsyncTask.html > > On Mar 22, 9:34 pm, acr <acr...@gmail.com> wrote: > > > Hi all, > > I have an app that I set up to connect/parse json data/HttpPost to a > > mysql server via php.. > > > Everything works perfectly if there is a basic connection, and if > > there is no connection my handlers work flawlessly. > > The problem is when the server is slow to respond like 15-30+ seconds > > the activity just freezes. I cannot add a progress dialog to handle > > it, the app freezes until the android dialog pops up stating "Force > > Close" or "Wait" if I click wait it will eventually get up and > > running. > > > Anyone know how to handle this situation so if the connections is > > dreadfully slow it doesn't cause the activity/app to freeze? > > > Please help all suggestions appreciated > > Thanks, > > Albert -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en