title: Android: Refreshing the Gallery after saving new images
body: <p>So in my application I at one point save a bunch of images to a temporary folder, and I want them to show up immediately in the Gallery. Off of a reboot, they do, but otherwise they don't. </p>
  
  <p>I've tried using the sendBroadcast method:</p>
  
  <pre><code> sendBroadcast(new Intent(Intent.ACTION_MEDIA_MOUNTED, 
       Uri.parse("file://" + Environment.getExternalStorageDirectory())));
  </code></pre>
  
  <p>But I get a permission error:</p>
  
  <pre><code>E/AndroidRuntime( 2628): java.lang.SecurityException: Permission Denial: not allowed to send broadcast android.intent.action.MEDIA_MOUNTED from pid=2628, uid=10068
  </code></pre>
  
  <p>Could I be missing a permission in my AndroidManifest, or is this just no longer supported? Thanks</p>