Ask Your Question

Revision history [back]

In Hello OpenCV Sample, in AndroidManifest.xml file, just add this line to your <activity> tag:

android:screenOrientation="landscape"

By this, you are simply telling your activity to always run in landscape mode. This is way of assigning screen orientation mode in Android Development. After that run your project, and you will notice that your problem has been resolved.