An introduction to Windows Mobile development

66
Writing a mobile Writing a mobile application application An introduction to developing for Windows Mobile

description

A first introduction to what you can do to develop for Windows Mobile

Transcript of An introduction to Windows Mobile development

Page 1: An introduction to Windows Mobile development

Writing a mobile applicationWriting a mobile application

An introduction to developing for Windows Mobile

Page 2: An introduction to Windows Mobile development

Dale Lane

[email protected] Hursley Park

Page 3: An introduction to Windows Mobile development

Windows Mobile devicesWindows Mobile devices

Page 4: An introduction to Windows Mobile development

Screen typesScreen types

Touchscreen

Page 5: An introduction to Windows Mobile development

Screen typesScreen types

No touchscreen

Page 6: An introduction to Windows Mobile development

Screen typesScreen types

TouchscreenNo

touchscreenWindows Mobile 5 “Pocket

PC”“Smartpho

ne”

Windows Mobile 6 “Professio

nal”“Standard”

Page 7: An introduction to Windows Mobile development

Windows Mobile Developer Windows Mobile Developer Resource KitResource Kit

http://www.microsoft.com/windowsmobile/developers/

Page 8: An introduction to Windows Mobile development

Visual Studio 2005Visual Studio 2005

Page 9: An introduction to Windows Mobile development

EmulatorsEmulators

Page 10: An introduction to Windows Mobile development

Managed vs NativeManaged vs Native

NativeNative

ManagedManaged

Page 11: An introduction to Windows Mobile development

Managed vs NativeManaged vs Native

NativeNative C++

Good for:

low-level access

broader access

performance

Page 12: An introduction to Windows Mobile development

Managed vs NativeManaged vs Native

ManagedManaged C# / Visual Basic

Good for:

quick development

.NET (CF)

libraries for UI dev

libraries for mobile-specific stuff

Page 13: An introduction to Windows Mobile development

Managed vs NativeManaged vs Native

NativeNative

ManagedManaged

Page 14: An introduction to Windows Mobile development

My first native appMy first native app

Page 15: An introduction to Windows Mobile development
Page 16: An introduction to Windows Mobile development

My first native appMy first native app

Page 17: An introduction to Windows Mobile development

My first native appMy first native app

Page 18: An introduction to Windows Mobile development

My first native appMy first native app

Page 19: An introduction to Windows Mobile development

My first native appMy first native app

Page 20: An introduction to Windows Mobile development
Page 21: An introduction to Windows Mobile development
Page 22: An introduction to Windows Mobile development
Page 23: An introduction to Windows Mobile development

My first native appMy first native app

Page 24: An introduction to Windows Mobile development
Page 25: An introduction to Windows Mobile development

My first native appMy first native app

m_hwndHTML = CreateWindow(WC_HTML, NULL, WS_CHILD | WS_VISIBLE | HS_NOSCROLL, 0, 0, 100, 100, m_hwndContainer, NULL, HINST_RESDLL, NULL);

Page 26: An introduction to Windows Mobile development

My first native appMy first native app

m_hwndHTML = CreateWindow(WC_HTML, NULL, WS_CHILD | WS_VISIBLE | HS_NOSCROLL, 0, 0, 100, 100, m_hwndContainer, NULL, HINST_RESDLL, NULL);

SendMessage(m_hwndHTML, DTM_ZOOMLEVEL, 0, 1);

Page 27: An introduction to Windows Mobile development

My first managed appMy first managed app

Page 28: An introduction to Windows Mobile development
Page 29: An introduction to Windows Mobile development

My first managed appMy first managed app

Page 30: An introduction to Windows Mobile development

My first managed appMy first managed app

Page 31: An introduction to Windows Mobile development
Page 32: An introduction to Windows Mobile development
Page 33: An introduction to Windows Mobile development
Page 34: An introduction to Windows Mobile development
Page 35: An introduction to Windows Mobile development
Page 36: An introduction to Windows Mobile development
Page 37: An introduction to Windows Mobile development

My first managed appMy first managed app

Page 38: An introduction to Windows Mobile development

My first managed appMy first managed app

Page 39: An introduction to Windows Mobile development

Don’t stand aloneDon’t stand alone

• Native code– Extending applications:

• Pocket Outlook• Pocket Internet Explorer• Windows Media Mobile

– Plug-ins:• Today screen• Control Panel

Page 40: An introduction to Windows Mobile development

Don’t stand aloneDon’t stand alone

Page 41: An introduction to Windows Mobile development

Don’t stand aloneDon’t stand alone

Page 42: An introduction to Windows Mobile development

Don’t stand aloneDon’t stand alone

Page 43: An introduction to Windows Mobile development

Don’t stand aloneDon’t stand alone

Page 44: An introduction to Windows Mobile development

Don’t stand aloneDon’t stand alone

http://dalelane.co.uk/page.php?id=39

Page 45: An introduction to Windows Mobile development

Don’t stand aloneDon’t stand alone

• Managed code– Pocket Outlook Object Model (POOM)– Phone calls– SMS– System resources – State and Notification (SNAPI)

Page 46: An introduction to Windows Mobile development

Don’t stand aloneDon’t stand alone

Page 47: An introduction to Windows Mobile development

Don’t stand aloneDon’t stand alone

Page 48: An introduction to Windows Mobile development
Page 49: An introduction to Windows Mobile development
Page 50: An introduction to Windows Mobile development
Page 51: An introduction to Windows Mobile development

Don’t stand aloneDon’t stand alone

Page 52: An introduction to Windows Mobile development
Page 53: An introduction to Windows Mobile development

Don’t stand aloneDon’t stand alone

Page 54: An introduction to Windows Mobile development

OpenNetCFOpenNetCF

http://www.opennetcf.com/library/sdf/

Page 55: An introduction to Windows Mobile development

OpenNetCFOpenNetCF

// get wifi adapters

AdapterCollection adapters = Networking.GetAdapters();

string accessPointsFound = “”;

// look through each adapter in turn for the Wifi one

// (e.g. don't use ActiveSync, bluetooth etc.)

foreach (Adapter adapter in adapters)

{

if (adapter.IsWireless)

{

// look for access points known to the adapter

AccessPointCollection accessPoints = adapter.NearbyAccessPoints;

// look through each known access point in turn

foreach (AccessPoint ap in accessPoints)

{

accessPointsFound = accessPointsFound + “, “ + ap.Name;

}

}

}

Page 56: An introduction to Windows Mobile development

Creating an installerCreating an installer

Page 57: An introduction to Windows Mobile development
Page 58: An introduction to Windows Mobile development

Creating an installerCreating an installer

Page 59: An introduction to Windows Mobile development
Page 60: An introduction to Windows Mobile development

Creating an installerCreating an installer

Page 61: An introduction to Windows Mobile development
Page 62: An introduction to Windows Mobile development
Page 63: An introduction to Windows Mobile development

Creating an installerCreating an installer

Page 64: An introduction to Windows Mobile development
Page 65: An introduction to Windows Mobile development
Page 66: An introduction to Windows Mobile development

An introduction to Windows An introduction to Windows Mobile developmentMobile development

Dale Lane

[email protected] Hursley Park