My app stores large amount of user data in local database, like use name password, user file, images etc by IntentService which calls several web services, every thing is working well. My problem is if new user logs in, while the IntentService is still running I am unable to delete the old user data the log says Data Base locked. How to stop IntentService and delete database to replace with new user data.
EDIT
I followed this for insertion.