So a bit of looking around and it seems that to do this you'd have to
use the SET_ORIENTATION permission

The problem is you can't:

from AndroidSource/frameworks/base/core/res/AndroidManifest.xml

<!-- Allows low-level access to setting the orientation (actually
         rotation) of the screen.  Not for use by normal applications.
-->
    <permission android:name="android.permission.SET_ORIENTATION"
        android:label="@string/permlab_setOrientation"
        android:description="@string/permdesc_setOrientation"
        android:protectionLevel="signature" />

Key line there is protectionLevel="signature"

This ensures that only an app with the same signature as Android
system can use this permission...

So basically if you want your app to change global orientation you
have to recompile the Android OS and install it your self on any phone
you'd want that app to run on...

Is it just me or does that seem needlessly restrictive....

I can see that for something like BRICK but why is that necessary for
SET_ORIENTATION...??
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to