Why can't you add a progress dialog?  Put all the hard-working code in a
separate thread.  AsyncTask is really good for doing something like this...

Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Tue, Mar 22, 2011 at 10:34 AM, 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

-- 
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

Reply via email to