Skip to main content

Downloading content

1 reply [Last post]
sriramjava86
Offline
Joined: 2010-06-15
Points: 0

In my LWUIT application when iam downloading an image(through GPRS) i started a Thread in which iam passing the imageURL to connection.open(...) method, and in between if the network is lost.My application is getting hanged how to overcome such situation?Iam not getting any exception also not even response code.

How can i resolve this issue

Thanks in Advance,

Sriramjava86

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vprise
Offline
Joined: 2003-11-07
Points: 0

Please read about not blocking the EDT, you are effectively blocking the thread that draws and handles events in LWUIT hence it can't do anything. Either open a new thread or use LWUIT4IO which handles all of that.