MediaScannerConnection scanFile scanner is crashing
<p>When I run the following line of code:</p>

<pre><code>MediaScannerConnection scanner = new MediaScannerConnection( this, null );
    scanner.connect();
    scanner.scanFile( szFinalFileName, null ); //&lt;---crash here
</code></pre>

<p>I get a crash and this message in the console window:</p>

<pre><code>09-26 14:47:44.074: ERROR/MediaScannerService(10288): Failed to delete file /data/data/com.android.providers.media/pause_scan
</code></pre>

<p>does anyone have any ideas why this isnt working and what i can do to fix it?</p>

<p>Thanks in advance :-)</p>
