26
WP SDK v 7.1.1 Allegedly AKA “Tango”

WPSDK 7.1.1

Embed Size (px)

DESCRIPTION

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

Citation preview

Page 1: WPSDK 7.1.1

WP SDK v 7.1.1Allegedly AKA “Tango”

Page 2: WPSDK 7.1.1

For lower spec devices

Like the Lumia 610

Page 3: WPSDK 7.1.1
Page 4: WPSDK 7.1.1

2 big differences

All about resources256MB

Page 5: WPSDK 7.1.1

Get the SDK

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

Page 6: WPSDK 7.1.1

Install the SDK

Remember it’s a CTP

Page 7: WPSDK 7.1.1

What’s installed

Not a lot...

Page 8: WPSDK 7.1.1

NOT a new OS

Page 9: WPSDK 7.1.1

a new emulator

Page 10: WPSDK 7.1.1

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;   }}

Page 11: WPSDK 7.1.1

Detect low memory devices

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

Page 12: WPSDK 7.1.1

Only detect available memory once

Save the results (IsolatedStorageSettings)

Page 13: WPSDK 7.1.1

Test

In emulatorS, for now

Page 14: WPSDK 7.1.1

No generic background agents

Resource-intensive or periodic

Page 15: WPSDK 7.1.1

Resource-intensive agentalternative

Do it when the app is running

Page 16: WPSDK 7.1.1

Periodic task agentalternative

Push Notifications

Page 17: WPSDK 7.1.1

Save memory

Do less

Page 18: WPSDK 7.1.1

Save memory

Fewer, smaller resources

Page 19: WPSDK 7.1.1

Save memory

Apps, not controls

Page 20: WPSDK 7.1.1

beware

Long lists, complex templates and animations, orientation

changes

Page 21: WPSDK 7.1.1

Opting out

They won’t even know you exist

Page 22: WPSDK 7.1.1

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

Page 23: WPSDK 7.1.1

Uninstall the SDK

emulator, then assemblies

Page 24: WPSDK 7.1.1
Page 25: WPSDK 7.1.1

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

Page 26: WPSDK 7.1.1