Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

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

branch: master

Merge pull request #7 from pamepros/master

now works with cordova 2.5
latest commit 109e6eb4d7
their authored
Octocat-spinner-32 src now works with cordova 2.5 August 09, 2013
Octocat-spinner-32 www now works with cordova 2.5 August 09, 2013
Octocat-spinner-32 LICENSE added mit license July 09, 2012
Octocat-spinner-32 README.md now works with cordova 2.5 August 09, 2013
README.md

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/ScreenOrientation.java 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:

Something went wrong with that request. Please try again.