Hi, I'm trying to use the ACTION_MEDIA_SCANNER_SCAN_FILE action, but
when executing I receive the error message:

ERROR/AndroidRuntime(19966):
android.content.ActivityNotFoundException: No Activity found to handle
Intent { action=android.intent.action.MEDIA_SCANNER_SCAN_FILE
data=file:///sdcard type=/* flags=0x10000000 }

My code is:
Intent myIntent = new
Intent(android.content.Intent.ACTION_MEDIA_SCANNER_SCAN_FILE,
Uri.parse("file://sdcard/image.jpg"));

startActivity(myIntent);

Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to