Hi,
I'm trying to send an HTTP request from a WakefulService so a Service which has
been started from an alarm set up with AlarmManager and I get the error:
IllegalStateException: No wrapped connection.
HttpGet httpGet = (HttpGet) new
HttpGet(MYRequestHelper.getRequest(this));
There is something messed up with your HttpClient object. That
exception is being raised by HttpClient itself, based upon what I can
see in the Android source code.
Bear in mind that, in the case of an alarm, your process hopefully was
terminated/recycled since the last alarm, and so there is
Wow thank you Mark.
I'll try to implement those changes.
Regards,
Julius.
On 31/10/2010, at 7:56 PM, Mark Murphy wrote:
There is something messed up with your HttpClient object. That
exception is being raised by HttpClient itself, based upon what I can
see in the Android source code.
Hi Mark,
Looks like it was a threading issue - from what you say; IntentService doing
work on a separate thread, so just creating a new DefaultHttpClient seems to
have done the trick.
Thank you for explaining (once again) :)
Regards,
Julius.
On 31/10/2010, at 7:56 PM, Mark Murphy wrote:
4 matches
Mail list logo