Hi,

I have a painting app which works for many years, tested fine under last 
Nexus 7 and even Nexus 4 with 4.3 update... failed on the latest Nexus 7!

When I save a file - this code works for all devices except latest Nexus 7.

--

> String fileURL = Media.insertImage(getContentResolver(), bitmap, 
> "KidsPaint", "Picture");
> if (fileURL != null) {
>     Uri uri = Uri.parse(fileURL);
>     sendBroadcast(new Intent(Intent.ACTION_MEDIA_SCANNER_SCAN_FILE, uri));
> }

--


In latest Nexus 7 I got the following error messages - what have I done 
wrong? Any suggestions, thanks!


08-19 22:44:58.798: E/MediaStore(11181): Failed to insert image

08-19 22:44:58.798: E/MediaStore(11181): java.io.FileNotFoundException: No 
such file or directory

08-19 22:44:58.798: E/MediaStore(11181): at 
android.database.DatabaseUtils.readExceptionWithFileNotFoundExceptionFromParcel(DatabaseUtils.java:146)

08-19 22:44:58.798: E/MediaStore(11181): at 
android.content.ContentProviderProxy.openAssetFile(ContentProviderNative.java:577)

08-19 22:44:58.798: E/MediaStore(11181): at 
android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:673)

08-19 22:44:58.798: E/MediaStore(11181): at 
android.content.ContentResolver.openOutputStream(ContentResolver.java:537)

08-19 22:44:58.798: E/MediaStore(11181): at 
android.content.ContentResolver.openOutputStream(ContentResolver.java:513)

08-19 22:44:58.798: E/MediaStore(11181): at 
android.provider.MediaStore$Images$Media.insertImage(MediaStore.java:891)


-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to