title: How can I capture an image in Android and have it show up in the gallery?
body: <p>I was capturing images before that were showing up in the gallery, but now they are not and I can't figure out why.  Here is my code:</p>
  
  <pre><code>        ContentValues values = new ContentValues();
      values.put(android.provider.MediaStore.Images.Media.IS_PRIVATE, false);
      String name = "ugc_" + String.valueOf(System.currentTimeMillis());
      values.put(android.provider.MediaStore.Images.Media.TITLE, name);
      imageURI = getContentResolver().insert(android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI, values);
  </code></pre>
  
  <p>I've also tried:
      values.put(android.provider.MediaStore.Images.Media.IS_PRIVATE, 0);
  as well as leaving at that value, but nothing seems to work now.</p>