Is the connection to the server in seperate thread than the UI? If
not, one of the way to do is described here
http://developer.android.com/reference/android/os/AsyncTask.html

On Mar 22, 9:34 pm, acr <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to