title: how to copy existing database after app installed in android
body: <p>I have DB in assets folder i want to copy it in database folder during the installation,
  Is there any way to do that?</p>
  
  <p>OR if there aren't way to do that is there a way to make progress bar while the app coping the  database after the app launched ?</p>
  
  <p>Edit:</p>
  
  <p>I have problem with database 
  logcat "shows cannot open file at line 30176" 
  i tried this</p>
  
  <pre><code>    if(android.os.Build.VERSION.SDK_INT &gt;= 4.2){
          DB_PATH = context.getApplicationInfo().dataDir + "/databases/";         
      } else {
          DB_PATH = "/data/data/" + context.getPackageName() + "/databases/";
      }
  </code></pre>
  
  <p>but it's not working :(</p>