This code works on all Android versions except on 4.3:
ContentValues content = new ContentValues(4);
content.put(Video.VideoColumns.TITLE, "vid.mp4");
content.put(Video.VideoColumns.DATE_ADDED,
System.currentTimeMillis() / 1000);
content.put(Video.Media.MIME_TYPE, "video/mp4");
content.put(MediaStore.Video.Media.DATA, "/sdcard/vid.mp4");
ContentResolver resolver = getContentResolver();
* Uri uri =
resolver.insert(MediaStore.Video.Media.EXTERNAL_CONTENT_URI,*
* content);*
On 4.3 *uri *is null.
Can someone help?
Thanks,
Eli
--
--
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.