Re: [android-developers] Capturing Intent.ACTION_MEDIA_SCANNER_FINISHED

2010-12-16 Thread Mark Murphy
On Wed, Dec 15, 2010 at 7:47 PM, Julius Spencer jul...@msa.co.nz wrote: That was it; thank you again Mark. Do you know why it might not work in the manifest in this case (ie. for this Intent)? If you have not tried the corresponding data element, try that. Otherwise, it is possible that

[android-developers] Capturing Intent.ACTION_MEDIA_SCANNER_FINISHED

2010-12-15 Thread Julius Spencer
Hi, I have set up a BroadcastReceiver to capture: Intent.ACTION_MEDIA_SCANNER_FINISHED or: android.intent.action.MEDIA_SCANNER_FINISHED and I'm not able to capture the Intent. I have tried using the Manifest as well as programmatically, without any luck: receiver

Re: [android-developers] Capturing Intent.ACTION_MEDIA_SCANNER_FINISHED

2010-12-15 Thread Mark Murphy
If the source code is any indicator, you need: intentFilter.addDataScheme(file); or the data equivalent in addition to what you have there. For example: IntentFilter intentFilter = new IntentFilter(Intent.ACTION_MEDIA_SCANNER_FINISHED); intentFilter.addDataScheme(file);

Re: [android-developers] Capturing Intent.ACTION_MEDIA_SCANNER_FINISHED

2010-12-15 Thread Julius Spencer
That was it; thank you again Mark. Do you know why it might not work in the manifest in this case (ie. for this Intent)? Regards, Julius. On 16/12/2010, at 1:40 PM, Mark Murphy wrote: If the source code is any indicator, you need: intentFilter.addDataScheme(file); or the data