Re: [mono-android] Handling Config Changes

2012-09-08 Thread Stephan Steiner
Actually - in case anybody finds this thread instead of some of the more recent Stackoverflow threads - [Activity(ConfigurationChanges=ConfigChanges.Orientation)] may not be enough. If you're targeting Android 3.2 or higher, you also need to add ConfigChanges.ScreenSize. On top of that, it seems

Re: [mono-android] Handling Config Changes

2012-01-03 Thread Jonathan Pryor
On Dec 30, 2011, at 8:45 AM, was wrote: > I want to restart an activity when the user changes the screen orientation. That is the default behavior, unless you set ActivityAttribute.ConfigurationChanges: [Activity(ConfigurationChanges=ConfigChanges.Orientation)] public class Manua

Re: [mono-android] Handling Config Changes

2011-12-30 Thread caruso
Is it working now? Have you tried to rotate a simple Example only with a textview or Something, i will take a look tomorrow at it, how the old mono works by me but if i remember correctly i had the issues with rotation handling and forgotten context or invalid activities with monodroid 1.2 and wor

Re: [mono-android] Handling Config Changes

2011-12-30 Thread was
Thanks for checking Enrico. I'm just using an alert message in OnCreate and it is only displayed once when the activity is started; not when the orientation is changed. I'm using MfA 1.2, so I'll check if it works with MfA 4. Regards...Andrew -- View this message in context: http://mono-for-andr

Re: [mono-android] Handling Config Changes

2011-12-30 Thread caruso
Hello Andrew, have you made a Log.Debug("OnCreate", "success"); to check if this is fired up? look for OnStart() as alternativ When i change the orientation OnCreate is fired, using MfA 4.0 To disable the ScreenOriention you can override the onConfigurationChange but it is not preffered by andr