title: Android How to stop database insertion process
body: <p>My app stores large amount of user data in local database, like use name password, user file, images etc by <strong>IntentService</strong> 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 <strong>Data Base locked</strong>. 
  How to stop IntentService and delete database to replace with new user data.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I followed <a href="http://www.outofwhatbox.com/blog/2010/12/android-using-databaseutils-inserthelper-for-faster-insertions-into-sqlite-database/" rel="nofollow">this</a> for insertion. </p>