Enabling camera and disk access in the manifest
The AndroidManifest.xml
(the manifest) file specifies an Android app's requirements and components. Compared to the default manifest, the manifest in Second Sight
needs to do the following additional work:
Ensure that the device has at least one camera.
Get permission to use the camera.
Get permission to write the files to the permanent storage.
Restrict the screen orientation to landscape mode because OpenCV's camera preview does not handle portrait mode well. For more description over the issue and some attempted workarounds, see the
StackOverflow
thread at http://answers.opencv.org/question/7143/mirror-image-on-android-front-camera/. Also see the blog post by Yu Lu and the comments posted by her readers at http://littlecheesecake.wordpress.com/2012/03/12/display-orientation-issue-when-working-with-opencv-on-android/.Register the second activity.
We can accomplish these tasks by editing the uses-permission
, uses-feature
, and activity
tags in the...