Hanging application

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Hanging application

Postby williamzanelli » Wed May 27, 2009 3:49 pm

Hi guys,

I have a small issue,

I have an application, which connects to the internet, the problem is the application starts "hanging" as in waiting for the website to respond,

From time-time, Android asks the user to quit, or "force closure" of application,

Is there anyway I can bypass this?


Thanks in advance for your thoughts.
Will
williamzanelli
Experienced Developer
Experienced Developer
 
Posts: 63
Joined: Mon Jan 05, 2009 2:37 am
Location: UK

Top

Postby iifuzz » Wed May 27, 2009 3:55 pm

iifuzz
Junior Developer
Junior Developer
 
Posts: 22
Joined: Thu May 21, 2009 6:00 pm

Postby williamzanelli » Wed May 27, 2009 4:43 pm



Thanks for the reply. I'm not sure what that code does.. could someone please explain??

Thanks

Will
Will
williamzanelli
Experienced Developer
Experienced Developer
 
Posts: 63
Joined: Mon Jan 05, 2009 2:37 am
Location: UK

Postby keylimepai » Wed May 27, 2009 7:31 pm

williamzanelli wrote:


Thanks for the reply. I'm not sure what that code does.. could someone please explain??

Thanks

Will


It creates a second thread (see line 18) to process the web request, so the main thread will remain responsive. =)
keylimepai
Junior Developer
Junior Developer
 
Posts: 14
Joined: Wed May 27, 2009 7:14 pm

Postby williamzanelli » Thu May 28, 2009 11:54 am

Thanks for this.

A lot to think about.
Will
williamzanelli
Experienced Developer
Experienced Developer
 
Posts: 63
Joined: Mon Jan 05, 2009 2:37 am
Location: UK

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 8 guests