Long Running task in android
<p>I want to do long running task, But if I use Activity or Service then it gives Timeout </p>

<p>exception, and if I use <strong>doInBackground(Context... params)</strong> which uses <strong>AsyncTask</strong>  class </p>

<p>But i want to do syncronse task</p>

<p>plz help if there is any other better alternate for this</p>
