title: How to read version number from a database file in Android which is placed in asset folder
body: <p>I have an SQLite file in asset folder under a package databases which I am placing manually (like this: src ->main->asset->databases->q-db (q-db is my SQLite file). </p>
  
  <p>Now I want to read its version number and want to match if this version is placed in my own app, if no then this needs to copy in my database otherwise will skip. Of course for the first time it will copy from the file and next time whenever the app opens, it will check the version numbers.</p>
  
  <p>I Googled a lot but unable to get the version number of the file, what I am getting is my SQLite version number which I do not want in my case. Your kind support will be highly appreciated.</p>
  
  <p>For reference : I am following similar to this:</p>
  
  <p><a href="https://www.concretepage.com/android/android-ship-sqlite-database-with-apk-copy-sqlite-database-from-assets-folder-to-data-example" rel="nofollow noreferrer">https://www.concretepage.com/android/android-ship-sqlite-database-with-apk-copy-sqlite-database-from-assets-folder-to-data-example</a></p>