I am having problems when trying to call the constructor of the asynctask inside a service.
I got this error
Can't create handler inside thread that has not called Looper.prepare().
Should I call the AsyncTask inside a UIThread?
Strangely, It is working in Jellybean but crashing in ICS.
@Override
public void onCreate(){
super.onCreate();
WebRequest wr = new WebRequest(this.serviceURL, this);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB)
wr.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, processType, newMap);
else
wr.execute(processType, newMap);
}