title: Error at line 30174
body: <p>This might be a duplicate question but I have searched for this a lot but didnt get a proper answer</p>
  
  <p>In one of my activity I'm using 2 viewpager's and the content of the viewpager's are coming from database.</p>
  
  <p>the activity is working properly as its expected when I've started the app and executing it completely and finally closing it, but if i make my app background while that activity is opened</p>
  
  <p>and start 5-6 other apps and then again come back to this app I'm getting this error</p>
  
  <pre><code>01-10 05:28:48.620: E/SQLiteLog(5770): (14) cannot open file at line 30174 of [00bb9c9ce4]
  01-10 05:28:48.620: E/SQLiteLog(5770): (14) os_unix.c:30174: (2) open(//JKBADP.sqlite) - 
  01-10 05:28:48.625: E/SQLiteDatabase(5770): Failed to open database 'JKBADP.sqlite'.
  01-10 05:28:48.625: E/SQLiteDatabase(5770): android.database.sqlite.SQLiteCantOpenDatabaseException: unknown error (code 14): Could not open database
  01-10 05:28:48.625: E/SQLiteDatabase(5770):     at android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)
  01-10 05:28:48.625: E/SQLiteDatabase(5770):     at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:209)
  01-10 05:28:48.625: E/SQLiteDatabase(5770):     at android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:193)
  01-10 05:28:48.625: E/SQLiteDatabase(5770):     at android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:463)
  01-10 05:28:48.625: E/SQLiteDatabase(5770):     at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:185)
  01-10 05:28:48.625: E/SQLiteDatabase(5770):     at android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:177)
  01-10 05:28:48.625: E/SQLiteDatabase(5770):     at android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:804)
  01-10 05:28:48.625: E/SQLiteDatabase(5770):     at android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:789)
  01-10 05:28:48.625: E/SQLiteDatabase(5770):     at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:694)
  01-10 05:28:48.625: E/SQLiteDatabase(5770):     at android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:669)
  01-10 05:28:48.625: E/SQLiteDatabase(5770):     at com.winit.dropbox.databaseaccess.DatabaseHelper.openDataBase(DatabaseHelper.java:189)
  01-10 05:28:48.625: E/SQLiteDatabase(5770):     at com.winit.dropbox.dataaccesslayer.DepartmentDA.getallDepartment(DepartmentDA.java:84)
  </code></pre>
  
  <p>The whole error is too big to post here so I've posted only the initial few lines, I think this error at line 30174 problem is the real issue</p>
  
  <p>I've saved the database path and name in a separate class and the string variables are static.</p>
  
  <p>I have tried binding all the controls and the initialization in onresume method, but that also didn't help.</p>
  
  <p>Can someone please help.</p>
  
  <p>Thanks</p>