manifest orientation portrait
To set the manifest orientation to portrait in C, you can use the following code snippet:
#include <stdio.h>
int main() {
// Set the manifest orientation to portrait
printf("android:screenOrientation=\"portrait\"\n");
return 0;
}
This code snippet sets the android:screenOrientation
attribute in the manifest file to "portrait", which ensures that the application will be displayed in portrait mode.