Code example for Configuration

0
        } catch (RemoteException e) {
            fail("Unexpected remote exception");
        } 
         
        try { 
            mWm.updateOrientationFromAppTokens(new Configuration(), null);
            fail("IWindowManager.updateOrientationFromAppTokens did not throw SecurityException as"
                    + " expected"); 
        } catch (SecurityException e) {
            // expected 
        } catch (RemoteException e) {
            fail("Unexpected remote exception");
        } 
         
        try { 
            mWm.setAppOrientation(null, 0);
            mWm.addWindowToken(null, 0);
            fail("IWindowManager.setAppOrientation did not throw SecurityException as"
                    + " expected"); 
        } catch (SecurityException e) {