An introduction to Windows Mobile development

Post on 19-Nov-2014

13.398 views 1 download

Tags:

description

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

Transcript of An introduction to Windows Mobile development

Writing a mobile applicationWriting a mobile application

An introduction to developing for Windows Mobile

Dale Lane

dale.lane@uk.ibm.comIBM Hursley Park

Windows Mobile devicesWindows Mobile devices

Screen typesScreen types

Touchscreen

Screen typesScreen types

No touchscreen

Screen typesScreen types

TouchscreenNo

touchscreenWindows Mobile 5 “Pocket

PC”“Smartpho

ne”

Windows Mobile 6 “Professio

nal”“Standard”

Windows Mobile Developer Windows Mobile Developer Resource KitResource Kit

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

Visual Studio 2005Visual Studio 2005

EmulatorsEmulators

Managed vs NativeManaged vs Native

NativeNative

ManagedManaged

Managed vs NativeManaged vs Native

NativeNative C++

Good for:

low-level access

broader access

performance

Managed vs NativeManaged vs Native

ManagedManaged C# / Visual Basic

Good for:

quick development

.NET (CF)

libraries for UI dev

libraries for mobile-specific stuff

Managed vs NativeManaged vs Native

NativeNative

ManagedManaged

My first native appMy first native app

My first native appMy first native app

My first native appMy first native app

My first native appMy first native app

My first native appMy first native app

My first native appMy first native app

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

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

My first managed appMy first managed app

My first managed appMy first managed app

My first managed appMy first managed app

My first managed appMy first managed app

My first managed appMy first managed app

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

Don’t stand aloneDon’t stand alone

Don’t stand aloneDon’t stand alone

Don’t stand aloneDon’t stand alone

Don’t stand aloneDon’t stand alone

Don’t stand aloneDon’t stand alone

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

Don’t stand aloneDon’t stand alone

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

Don’t stand aloneDon’t stand alone

Don’t stand aloneDon’t stand alone

Don’t stand aloneDon’t stand alone

Don’t stand aloneDon’t stand alone

OpenNetCFOpenNetCF

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

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;

}

}

}

Creating an installerCreating an installer

Creating an installerCreating an installer

Creating an installerCreating an installer

Creating an installerCreating an installer

An introduction to Windows An introduction to Windows Mobile developmentMobile development

Dale Lane

dale.lane@uk.ibm.comIBM Hursley Park