How to lock screen orientation to portrait or landscape?

This article will show you how to lock screen orientation to one direction. Environment Details: – Phonegap Build – cli-5.2.0 – Device: iPhone S5 9.3.2 For locking orientation to portrait add following code into your config.xml: <gap:config-file platform=”ios” parent=”UISupportedInterfaceOrientations” overwrite=”true”> <array> <string>UIInterfaceOrientationPortraitOmg</string> </array> </gap:config-file> For Landscape: <gap:config-file platform=”ios” parent=”UISupportedInterfaceOrientations” overwrite=”true”> <array> <string>UIInterfaceOrientationLandscapeLeft</string> <string>UIInterfaceOrientationLandscapeRight</string> </array> </gap:config-file> Source: https://github.com/phonegap/build/issues/263

Android: How to generate key hash for Android Facebook?

In order to generate key hash you need to follow some easy steps. 1) Download Openssl from: here. 2) Make a openssl folder in C drive 3) Extract Zip files into this openssl folder created in C Drive. 4) Copy the File debug.keystore from .android folder in my case (C:\Users\SYSTEM.android) and paste into JDK bin […]