On Oct 4, 2011, at 10:57 AM, Luke Stevens wrote:
> Hey all, long time reader, first-time poster here (sounds like a radio show).
> Anyway, I'm trying to set the orientation of an activity within the Android
> Manifest,
Don't. Use the [Activity] custom attribute:
[Activity (
ScreenOrientation=Android.Content.PM.ScreenOrientation.Portrait)]
public class MyActivity : Android.App.Activity {
// ...
}
The build process will properly generate an <activity/> element within
AndroidManifest.xml with the correct android:name and android:screenOrientation
attributes.
If you _really_ need to provide your own AndroidManifest XML fragment, the
easiest way to find the Java class name is to generate the .apk, then look in
e.g. obj\Debug\android\src for YourActivityName.java, then read the `package`
statement.
- Jon
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid