Invoke device lock programmatically in Windows Phone 8 - windows-phone-8

I am working on a Windows Phone application where I would like to automatically trigger the device lock. I also want to add an option to change the device lock pin code from my application. Is this possible?

Neither of the things you want is possible with the current SDK.

Related

How to highly recommend a user to launch an app when the app is not up?

I have the need to have an application always active in windows phone 8. All users have to use this application. More precisely, all users will have a background agent inside this application which will receive and send informations.
Note : I'm talking here about a private application use by a limited number of users.
During my research, I became aware that i couldn't paramater my application in order to launch it at startup. This isn't possible with Windows phone 8. So, i start looking for others options.
In my understanding, the only way to do that in the Microsoft way is to use the notifications. If the phone don't have the application launched, a notification is send periodically to invite the user to launch the application.
My question, did I miss some functionnalites in Windows Phone 8 whiches propose the same functionnality in a better way ?
Thank you very much

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..

Load data dynamically in windows phone 8

I am working on windows phone 8. I am new to it. My concern is i want to load data in a list from database.(for example contacts). But i want to dynamically load data when users tap up the screen as for performance. First i need to display of 10 contacts(for example) and when user taps down i need to load it dynamically.. can we do this in windows phone 8.. can we fire an event in windows or do we have any thing in the telerik controls...Or there was any other method to improve the performance.
Can any one please help me to find the solution..
take a look of this example and this is the description of how to create infinite LongListSelector in windows phone 8

Windows Phone 8 - Make a call without user notification

Is there any way a Windows Phone 8 app can make phone calls, sending SMS, and perform other cellular network activities without user interaction?
According to this answer https://stackoverflow.com/a/7342769 it is somehow possible to perform AT commands to directly access the cellular functionality on Windows Phone 7 (in an inofficial way). Since the Windows Phone 8 SDK supports native code, my question is if you can make use of this to send the required AT commands or access the RIL layer somehow.
In case anyone is wondering why I need this: it's not about an app wich is going to get published but it is needed for an automated testing process.
You cannot do that, this is not possible in windows phone

How to disable screen saver in WinRT

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