I was reading the documentation for recording audio and video (http://
developer.android.com/guide/topics/media/index.html) and noticed a few
problems:

Video and image capture are not described even though MediaRecorder's
documentation directs readers to this page for more information.
Through other websites, I discovered that video capture is a fair bit
more involved and has a number of gotchas compared to audio capture.
For example, the internet seems to hold that for now a valid preview
surface is counterintuitively required for video capture (http://
stackoverflow.com/questions/1032912/android-does-anyone-know-how-to-
capture-video/1592917#1592917). It would be nice if these quirks were
documented on this page.

The code listed in the example is not correct (as of API version 7 --
I also checked some of these against the most recent API, but not all
of them).

- MediaStore.MediaColumns does not contain a TIMESTAMP field. (I think
DATE_ADDED is what's actually there.)

- MediaStore.Audio does not have an INTERNAL_CONTENT_URI field.

- ContentResolver is an abstract class that cannot be instantiated.

- ContentResolver does not have a getDataFilePath method.

- MediaRecorder does not have a getMimeContentType method, or any
other method that performs this function.

- A comment in the example suggests that the preview display is
optional, which according to all the information I referred to earlier
it is not.

This whole section of the docs could use a lot more detail. Maybe
links to the android camera application source would also be helpful
(http://android.git.kernel.org/?p=platform/packages/apps/
Camera.git;a=blob;f=src/com/android/camera/
Camera.java;h=523df5f06ccd97314006bf655a86f453914cb86b;hb=master).

-- 
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

Reply via email to