I have created IntentService class and performing asyncTask but getting exception when onPreExecute() is called at this code line
IntentService
asyncTask
onPreExecute()
Service isn't a UI thread. Since you try to display a ProgressDialog from a service context, it can't be completed. Try this solution: https://stackoverflow.com/a/4369755/1405268
ProgressDialog