WPSDK 7.1.1

Preview:

DESCRIPTION

An introduction to Windows Phone SDK 7.1.1 at WPUG (London - Feb 28)

Citation preview

WP SDK v 7.1.1Allegedly AKA “Tango”

For lower spec devices

Like the Lumia 610

2 big differences

All about resources256MB

Get the SDK

http://go.microsoft.com/fwlink/?LinkId=242824

Install the SDK

Remember it’s a CTP

What’s installed

Not a lot...

NOT a new OS

a new emulator

Detect low memory devices

public bool Is256MbDevice(){ // Place call in a try block in case the user is not  // running the most recent version of the Windows Phone OS //  and this method call is not supported.    try    { var result = (long)DeviceExtendedProperties .GetValue("ApplicationWorkingSetLimit");        return result < 94371840L;    } catch (ArgumentOutOfRangeException)    {        // The device has not received the OS update, // which means the device is a 512-MB device. return false;   }}

Detect low memory devices

    if (Environment.OSVersion.Version.Build >= 8731)    {        var result = (long)DeviceExtendedProperties .GetValue("ApplicationWorkingSetLimit");        return result < 94371840L;     }     else     {        return false;     }

Only detect available memory once

Save the results (IsolatedStorageSettings)

Test

In emulatorS, for now

No generic background agents

Resource-intensive or periodic

Resource-intensive agentalternative

Do it when the app is running

Periodic task agentalternative

Push Notifications

Save memory

Do less

Save memory

Fewer, smaller resources

Save memory

Apps, not controls

beware

Long lists, complex templates and animations, orientation

changes

Opting out

They won’t even know you exist

Opting out<?xml version="1.0" encoding="utf-8"?> <Deployment xmlns="http://schemas.microsoft.com/windowsphone/2009/d...    <App xmlns="" ProductID="{b0cd6a33-0fde-43f0-ace3-86df62da         <IconPath IsRelative="true" IsResource="false">ApplicationIcon.png</IconPath>         <Capabilities>             <Capability Name="ID_CAP_NETWORKING"/>  ...        </Capabilities>

       <Requirements>            <Requirement Name="ID_REQ_MEMORY_90" />       </Requirements> ...

Uninstall the SDK

emulator, then assemblies

Worth doing?Bahrain, Bulgaria, China, Costa Rica, Croatia, Estonia, Iceland, Iraq, Israel, Kazakhstan, Latvia, Lithuania, Qatar, Romania, Saudi 

Arabia, Slovakia, Slovenia, Thailand, Turkey, UAE, Ukraine, Venezuela and Vietnam

Recommended