You have the Simulator. Just go to the menu and select "Lock Device".

René

Am 24.05.2012 um 01:49 schrieb Dean Cleaver:

> Ok – thanx for that. I now just have to wait for him to come back from DR 
> with the iPad to test it – I don’t have one myself.
>  
> Dino
>  
> From: René Ruppert [mailto:[email protected]] 
> Sent: Wednesday, May 23, 2012 13:42
> To: Dean Cleaver; 'René Ruppert'
> Cc: [email protected]
> Subject: AW: [MonoTouch] Detecting device locked
>  
> Not true. ResignActivation is called if the device is turned off or the lock 
> screen of the iPad fires up.
> DidEnterBackground is called if the HOME button is pushed while the app is 
> running.
>  
> René
>  
> Von: Dean Cleaver [mailto:[email protected]] 
> Gesendet: Mittwoch, 23. Mai 2012 18:59
> An: René Ruppert
> Cc: [email protected]
> Betreff: RE: [MonoTouch] Detecting device locked
>  
> Problem is I don’t think this ever fires. From what I can see, the app does 
> not go into the background on these devices (certainly not on the CEO’s 
> iPad). I know this because in my DidEnterBackground, I stop my timer – 
> however I can get him to close the lid on his iPad, and it continues to call 
> the server in the timer events. Later versions of the OS (5 and up) do not do 
> this – they put the app in the background.
>  
> From: René Ruppert [mailto:[email protected]] 
> Sent: Monday, May 21, 2012 0:19
> To: Dean Cleaver
> Cc: [email protected]
> Subject: Re: [MonoTouch] Detecting device locked
>  
> AppDelegate has a method to override: OnResignActivation().
> 
> Grüße, René
> 
> Am 21.05.2012 um 00:37 schrieb Dean Cleaver 
> <[email protected]>:
> 
> Hi,
>  
> Anyone know of a way to detect that the screen is locked on iOS? In 5 and up, 
> once a device is locked, the app is pushed to the background. Not so on iOS 
> prior to 5 – but I would like to know when the user has locked the device so 
> I know to take different actions from the server. I’ve googled and come up 
> empty – am suspecting there is no way to tell?
>  
> Dino
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch

_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to