PhoneGap Plugin for Android that can lock/unlock the screen orientation.
Java JavaScript
Latest commit b39a5cc Sep 30, 2014 @their Merge pull request #8 from justinobney/master
PhoneGap 3.0 Compatible
Failed to load latest commit information.
www converting to be phonegap 3.0 compatible Sep 17, 2013
LICENSE now works with cordova 2.5 Aug 9, 2013
plugin.xml renaming plugin Sep 17, 2013

Updated to use with Cordova 2.5

Screen Orientation PhoneGap Plugin for Android

This PhoneGap Plugin for Android can lock/unlock the screen orientation.

How to install

  1. Add com/tsukurusha/phonegap/plugins/ to your src folder.

  2. Add the following line to res/xml/plugins.xml. <plugin name="ScreenOrientation" value="com.tsukurusha.phonegap.plugins.ScreenOrientation" />

  3. Add pg-plugin-screen-orientation.js to your assets/www folder and import it into your html file like: <script type="text/javascript" charset="utf-8" src="pg-plugin-screen-orientation.js"></script>

  4. The javascript interface is as follows: