我知道SDK尚未完成,但是一些幸运的开发人员已经掌握了它,所以这是我的问题:当你安装Windows Phone 8 SDK时,它是否也在Visual Studio 2010中安装了SDK,或者只是在2012年版(包括2012年快递)?
我正在尝试删除在我的应用中为运行低内存设备(如诺基亚Lumia 610)的用户启用动态磁贴的选项.我使用的是我从微软获得的代码,但运行Lumia 800和Focus i917的一些用户报告说,添加此功能后,实时磁贴功能消失了.
检测低内存设备的正确方法是什么?
这是我正在使用的代码,显然可以在模拟器和大多数用户中使用,但不适用于所有用户:
long result = 0;
try
{
result = (long)DeviceExtendedProperties.GetValue("ApplicationWorkingSetLimit");
}
catch (ArgumentOutOfRangeException)
{
//The device has not received the OS update, which means the device is a 512-MB device.
}
if (result < 90000000)
{
//Low memory device
}
Run Code Online (Sandbox Code Playgroud)