Thanks for your very helpful feedback Tom and Goncalo :)
Kind regards,
Ronny Dahl (+47 909 72 744)
Keywork AS
http://www.keywork.no/
From: monodroid-boun...@lists.ximian.com
[mailto:monodroid-boun...@lists.ximian.com] On Behalf Of Tom Opgenorth
Sent: Wednesday, December 12, 2012 3:52 PM
To: Dis
Turning screen on you can use a wake lock
wl = pm.NewWakeLock( WakeLockFlags.ScreenBright |
WakeLockFlags.AcquireCausesWakeup, "your_tag_here" );
wl.Acquire( 5000 ); // I used the timeout version here, but the other also
works
Just make sure you have the required permissions
Turning scree
gap: "Turning screen off, haven't tried in mono for android, but in java
this works"
powerService.goToSleep( SystemClock.uptimeMillis() + 1 );
On 13 December 2012 10:33, Goncalo Oliveira wrote:
> Turning screen on you can use a wake lock
>
> wl = pm.NewWakeLock( WakeLockFlags.ScreenBright |
>
The issue with that is that it requires special permissions my app doesn't
have. I'm not really looking to put the device to sleep, I merely want to
turn off the screen.
I found this:
http://stackoverflow.com/questions/3018716/android-turn-off-screen-when-close-to-face
so I guess I need a way to
Well, that seems to be an undocumented flag... it's value seems to be 32,
you can try a force cast.
Check
http://code.google.com/p/speakerproximity/source/browse/trunk/src/net/androcom/dev/speakerproximity/MyPhoneStateListener.javaline
53.
like
wakeLock = pm.NewWakeLock( (WakeLockFlags)32, "your_t
I now understand whats going wrong, and I suspect that something might be
slightly broken in the Publish wizard. tldr is that the wizard looks for the
built apk using the wrong name, and the assembly name and package name have
to be the same otherwise the wizard fails to sign the apk.
First, I ver
On Dec 13, 2012, at 10:38 AM, andyjohnson0 wrote:
> Is this a bug? If no, should I log it?
Yes, this is a bug; it's already been filed and will be fixed in a future
release. Sorry for the inconvenience.
https://bugzilla.xamarin.com/show_bug.cgi?id=8781
- Jon
_