Android 如何在meteor中锁定应用程序的方向
我想锁定我正在meteor中构建的应用程序的方向。Android 如何在meteor中锁定应用程序的方向,android,ios,meteor,build,Android,Ios,Meteor,Build,我想锁定我正在meteor中构建的应用程序的方向。 参考资料建议安装cordova插件,但我不想这样做,还有其他方法吗?您只需在mobile-config.js文件中添加这一行即可 App.setPreference("orientation", "portrait"); 为manifest.xml中的每个活动指定android:screenOrientation=肖像 例如:- <activity android:name=".activitie
参考资料建议安装cordova插件,但我不想这样做,还有其他方法吗?您只需在mobile-config.js文件中添加这一行即可
App.setPreference("orientation", "portrait");
为manifest.xml中的每个活动指定android:screenOrientation=肖像
例如:-
<activity
android:name=".activitiesName"
android:screenOrientation="portrait">
</activity>