title: Orientation Change Not Being Detected in Android Tablets
body: <p>I currently have this code(and I've tried various others) at the bottom of my app for detecting orientation change:</p>
  
  <pre><code>function orientation_changed (){
      if ( is_portrait() )
      {
          alert('ABC');
      }
      else if ( is_landscape() )
      {
          alert('234');
      }
      clearTimeout(window.t);
      delete window.t;
  }
  
  window.t = undefined;
  window.onorientationchange = function (event)
  {
      window.t = setTimeout('orientation_changed();', 250);
  }
  
  function is_landscape()
  {
      var uagent = navigator.userAgent.toLowerCase();
      if ( uagent.search('ipad') &gt; -1 )
      {
          var r = ( window.orientation == 90 || window.orientation == -90 );
      }
      else
      {
          var r = ( screen.width &gt; screen.height );
      }
      return r;
  }
  
  function is_portrait()
  {
      var uagent = navigator.userAgent.toLowerCase();
      if ( uagent.search('ipad') &gt; -1 )
      {
          var r = ( window.orientation == 0 || window.orientation == 180 );
      }
      else
      {
          var r = ( screen.width &lt; screen.height );
      }
      return r;
  }
  </code></pre>
  
  <p>But it never fires. I've tried other ways of getting the change in orientation of my tablet but none seem to work. My manifest looks like this:</p>
  
  <pre><code>&lt;manifest xmlns:android="http://schemas.android.com/apk/res/android" android:windowSoftInputMode="adjustPan"
        package="com.pp.editable" android:versionName="1.1" android:versionCode="5" android:hardwareAccelerated="true"&gt;
      &lt;supports-screens
          android:largeScreens="true"
          android:normalScreens="true"
          android:smallScreens="true"
          android:xlargeScreens="true"
          android:resizeable="true"
          android:anyDensity="true"
          /&gt;
  
      &lt;uses-permission android:name="android.permission.CAMERA" /&gt;
      &lt;uses-permission android:name="android.permission.VIBRATE" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.INTERNET" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" /&gt;
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.READ_PHONE_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.RECEIVE_SMS" /&gt;
      &lt;uses-permission android:name="android.permission.RECORD_AUDIO" /&gt;
      &lt;uses-permission android:name="android.permission.RECORD_VIDEO"/&gt;
      &lt;uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /&gt;
      &lt;uses-permission android:name="android.permission.READ_CONTACTS" /&gt;
      &lt;uses-permission android:name="android.permission.WRITE_CONTACTS" /&gt;   
      &lt;uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /&gt;   
      &lt;uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /&gt;
      &lt;uses-permission android:name="android.permission.GET_ACCOUNTS" /&gt;
      &lt;uses-permission android:name="android.permission.BROADCAST_STICKY" /&gt;
  
  
      &lt;application android:icon="@drawable/icon" android:label="@string/app_name"
          android:hardwareAccelerated="true"
          android:debuggable="true"&gt;
          &lt;activity android:name="editabledelights" android:label="@string/app_name"
                  android:theme="@android:style/Theme.Black.NoTitleBar"
                  android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale"&gt;
              &lt;intent-filter&gt;
                  &lt;action android:name="android.intent.action.MAIN" /&gt;
                  &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
              &lt;/intent-filter&gt;
          &lt;/activity&gt;
      &lt;/application&gt;
  
      &lt;uses-sdk android:minSdkVersion="7" android:targetSdkVersion="17"/&gt;
  &lt;/manifest&gt; 
  </code></pre>
  
  <p>And I am using a Lenovo IdeaPad. I'm using JQuery mobile and Cordova 2.3.0. Am I doing something wrong?</p>