How to disable screen saver in WinRT - windows-store-apps

This is how you do it on Windows Phone 7 http://blog.jerrynixon.com/2011/11/mango-sample-lock-and-run.html is it possible in Windows 8?

This sample is showing you how to implement the functionality so your app will still "run" when the device is locked. It only seems to work with a kind of "background tasks" which makes it not exactly the same as it is for Windows Phone.
http://code.msdn.microsoft.com/windowsapps/Lock-screen-apps-sample-9843dc3a
Please note that an app that can run when the device is locked should have at least one of the following background tasks:
Control Channel
Timer
Push Notification
Here is some more info on the lockscreen: http://msdn.microsoft.com/library/windows/apps/Hh779720
UPDATE:
As far as I have found there is no exact behaviour like in Windows phone to run your app under the lockscreen. There are a few recent posts on the MSDN blogs which explain the background model http://blogs.msdn.com/b/windowsappdev/archive/2012/05/16/being-productive-when-your-app-is-offscreen.aspx?wa=wsignin1.0
Sorry to see that at this moment there is no way to make it work under the lockscreen

Related

Overlay an app on top of another

Any way I can write a windows store app (for phone or other) which will allow me to draw on top of other apps? In other words, I'd like my app to run in the background and not handle any user gestures but be able to draw on a semi-transparent overlay / canvas above any other running apps. I can do this in windows 7 but WinRT is new to me.
thanks
I do not believe it is possible due to the sandboxed nature of Windows Store Apps to do something like this (much akin to iOS). Windows 8 has much tighter security in its applications, so much so that you can't even take a screenshot in a metro app, because if a user has split the screen to hold two apps, you could potentially capture information from the other application.
Please correct me if I'm wrong, but I've encountered this problem before and have found no viable solution.

How is it possible to wake up the windows phone 8 device?

I need to wake up windows phone 8 device. App is in foreground and I lock the screen.
I tried Toast, but it wakes up only when the app is in background.
I also tried Alarms and Reminders. But this button "snooze" is not acceptable for me.
I couldn't find any other way.
Alternatively maybe is it possible to send the app in background programmatically?
By waking up you mean unlocking the screen?
You cannot do that. Nor you can resume the app from the background or launch it using any means.
It is simply impossible due to the OS restrictions.

Run Windows Phone App in background without UI

I am developing a Windows phone 8 app that need to run only in background with UI. Is there any way I can run the app in the background, or without actually being open?
It depends upon what you want to do in the background. Generally speaking you can't implement something like a Windows service that will startup automatically when the phone is launched.
That said you can run your app in the background within given limitations. Check out MSDN for detailed information.
Why all these limitations you might ask yourself? It's to provide a good battery life to the user.
Edit:
For the periodic agent to start running the app must be started once. Further the agent must update a live tile (user must pin it to the start screen) or the app has to be once opened every 14 days.
Another option might be using push notifications to trigger an update..

Windows Phone 8: How to remove the delay of a Pivot control?

I want to use the Pivot control in my Windows Phone 8 app. It all works great except for one little detail... it seems to have delay when I swipe between pivot items.
To explain what I am talking about. Please compare the following:
In Visual Studio, create a new project based on the "Windows Phone Pivot App" template. Run this on a device or in the emulator. Swipe left or right a couple of times.
Now open up the settings app or the native mail app on Windows Phone 8. Those apps use a Pivot as well. Now swipe left or right a couple of times again. Notice how fast new content is displayed every time you swipe!
So basically: I want to remove the "delay" I experience when using the stock Pivot control and instead have the same speed as the settings and mail app.
Can anyone help me out please?

Windows Phone 8 SDK Voice Commands and Fast App Resume

I'm having a problem integrating Fast App Resume into my Windows Phone 8 app. When I hold the start button and enter a voice command, the command won't fire a Navigate event if the app is already loaded. I've tried intercepting every event I can when the app loads.... nothing.
Does anyone have any insight on how this should be handled in code?
Thanks!
I have confirmed with Microsoft that this behavior is indeed the case, and it is the way they intended it. They have left feedback to Engineering to take a look, but we can help it along by voting for it on UserVoice here.