title: SQLite Error 21 . "Misuse at line ... "
body: <p>I'm using this code to store SQLite DB to sdcard location (location on device /mnt/sdcard/MiniMate ):</p>
  
  <pre><code>string libraryPath = Android.OS.Environment.ExternalStorageDirectory.AbsolutePath;            
  libraryPath = System.IO.Path.Combine(libraryPath, "MiniMate");
  if (!System.IO.Directory.Exists(libraryPath)) System.IO.Directory.CreateDirectory(libraryPath);
              string path = System.IO.Path.Combine(libraryPath, sqliteFilename);
  </code></pre>
  
  <p>It works perfect when I using deploying from Visual studio to device; However if I  create .apk and install it on device it gives me an error "21". Looks like it's not permissions to do something with DB, I have "Constraint" error when I trying to insert something in DB.</p>
  
  <p>Does somebody know this issue?
  I'm not looking to move DB to different default location, Thank you!</p>
  
  <p>My Manifest file :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="internalOnly" package="com.prismvs.minimate" android:versionCode="14" android:versionName="14"&gt;
    &lt;uses-sdk android:targetSdkVersion="12" android:minSdkVersion="12" /&gt;
    &lt;application android:icon="@drawable/icon" android:label="MiniMate"&gt;
    &lt;/application&gt;
    &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
    &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
    &lt;uses-permission android:name="android.permission.BLUETOOTH" /&gt;
    &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
    &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;
    &lt;uses-permission android:name="android.permission.SET_ORIENTATION" /&gt;
    &lt;uses-permission android:name="android.permission.WRITE_OWNER_DATA" /&gt;
    &lt;uses-permission android:name="android.permission.READ_OWNER_DATA" /&gt;
  &lt;/manifest&gt;
  </code></pre>