Home:ALL Converter>Android ASyncTask and service

Android ASyncTask and service

Ask Time:2013-01-24T00:19:53         Author:ksh.max

Json Formatter

How I can start my service in ASyncTask for example

MyTask task = new MyTask();
startService(new Intent(MainActivity.this, MyService.class),    task);

What is correct way to do this?

I want to tell service in which threads are executed

Author:ksh.max,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/14484294/android-asynctask-and-service
yy