I have the context in a variable, how I can know if the context is intentService or not?
public void syncToServer(Context context){
if ( is intentService ){
hpptClientSend();
}else{
hpptClientAsyncSend();
}
}
The problem is when I want to use within a intentservice AsyncTask using httpclient since android does not allow a parallel thread within a service: An asyncTask launched from an onPostExecute of another AsyncTask does not execute properly in API 10
I need use httpClient into IntentService but same function i used in UI thread and need AsynkTask.