25.07.2013 Views

Windows Mobile Programming .Net and C# - Mobile Devices

Windows Mobile Programming .Net and C# - Mobile Devices

Windows Mobile Programming .Net and C# - Mobile Devices

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2007 Aalborg University, <strong>Mobile</strong> Device Group<br />

2007<br />

<strong>Windows</strong> <strong>Mobile</strong> <strong>Programming</strong><br />

<strong>Mobile</strong> Phone <strong>Programming</strong> http://mobiledevices.kom.aau.dk/<br />

<strong>Mobile</strong> Phone <strong>Programming</strong><br />

title<br />

<strong>Windows</strong> <strong>Mobile</strong><br />

Aalborg University, <strong>Mobile</strong> Device Group<br />

Compact Microsoft operating system for<br />

PDAs <strong>and</strong> Smartphones<br />

Has a suite of basic applications for mobile<br />

devices based on Microsoft Win32 API<br />

Designed to look like corresponding desktop<br />

versions of <strong>Windows</strong><br />

2007<br />

<strong>Mobile</strong> Phone <strong>Programming</strong><br />

title<br />

http://mobiledevices.kom.aau.dk/<br />

.<strong>Net</strong> <strong>and</strong> <strong>C#</strong><br />

Aalborg University, <strong>Mobile</strong> Device Group<br />

.<strong>Net</strong> is a programming framework from<br />

Microsoft for building <strong>Windows</strong> applications<br />

Accompanying programming language <strong>C#</strong> –<br />

inspired by C++ <strong>and</strong> Java<br />

Aimed at <strong>Windows</strong>, but .<strong>Net</strong> implementations<br />

exist for other platforms as well, e.g. Mono for<br />

Linux, Unix, MacOS etc.<br />

http://mobiledevices.kom.aau.dk/<br />

1


2007<br />

2007<br />

2007<br />

<strong>Mobile</strong> Phone <strong>Programming</strong><br />

title<br />

.<strong>Net</strong> framework<br />

Aalborg University, <strong>Mobile</strong> Device Group<br />

The .<strong>Net</strong> framework provides a large base of<br />

ready-made functionality to use<br />

– User interface components<br />

– Data I/O<br />

– <strong>Net</strong>working<br />

– Web services<br />

– Data base access<br />

– XML h<strong>and</strong>ling<br />

– etc…<br />

<strong>Mobile</strong> Phone <strong>Programming</strong><br />

title<br />

http://mobiledevices.kom.aau.dk/<br />

.<strong>Net</strong> programs<br />

Aalborg University, <strong>Mobile</strong> Device Group<br />

Programs for .<strong>Net</strong> compiled in a machineindependent<br />

way similarly to Java<br />

<strong>Mobile</strong> Phone <strong>Programming</strong><br />

Applications<br />

.<strong>Net</strong> Framework Class Library<br />

Common Language Runtime (CLR)<br />

Operating System<br />

title<br />

http://mobiledevices.kom.aau.dk/<br />

.<strong>Net</strong> Compact Framework<br />

Aalborg University, <strong>Mobile</strong> Device Group<br />

The .<strong>Net</strong> Compact Framework (CF) is a<br />

stripped-down version of .<strong>Net</strong> for memoryconstrained<br />

devices<br />

Functionality not useful to mobile devices has<br />

been left out<br />

The number of overloaded functions in the<br />

class library has been reduced<br />

Result: a light version at 8% size of full .<strong>Net</strong><br />

http://mobiledevices.kom.aau.dk/<br />

2


2007<br />

<strong>Mobile</strong> Phone <strong>Programming</strong><br />

title<br />

.<strong>Net</strong> CF & <strong>C#</strong><br />

Aalborg University, <strong>Mobile</strong> Device Group<br />

.<strong>Net</strong> & <strong>C#</strong> development easily accomplished<br />

in Microsoft Visual Studio<br />

– Includes graphical drag’n’drop GUI editor etc.<br />

It is also possible to develop .<strong>Net</strong> CF <strong>and</strong> <strong>C#</strong><br />

applications using freely available compiler<br />

tools <strong>and</strong> <strong>Windows</strong> <strong>Mobile</strong> device emulator<br />

from Microsoft<br />

– Simpler but free development tools<br />

2007<br />

<strong>Mobile</strong> Phone <strong>Programming</strong><br />

title<br />

http://mobiledevices.kom.aau.dk/<br />

GUI<br />

Aalborg University, <strong>Mobile</strong> Device Group<br />

Easy GUI development using existing GUI<br />

components<br />

The namespace (package)<br />

System.<strong>Windows</strong>.Forms for example contains<br />

well-known components such as:<br />

Button, TextBox, Label, RadioButton,<br />

ComboBox, ListBox, MessageBox, also<br />

WebBrowser<br />

2007<br />

<strong>Mobile</strong> Phone <strong>Programming</strong><br />

title<br />

http://mobiledevices.kom.aau.dk/<br />

<strong>Net</strong>work Functionality<br />

Aalborg University, <strong>Mobile</strong> Device Group<br />

WebRequest <strong>and</strong> WebResponse classes to<br />

automatically h<strong>and</strong>le such protocols as HTTP<br />

<strong>and</strong> HTTPS. Dns for looking up web adresses<br />

etc.<br />

TcpClient <strong>and</strong> TcpListener for TCP<br />

client/server implementation<br />

– TCP comm. By reading/writing streams<br />

IrdaClient <strong>and</strong> IrdaListener for infrared<br />

communication<br />

http://mobiledevices.kom.aau.dk/<br />

3


2007<br />

<strong>Mobile</strong> Phone <strong>Programming</strong><br />

Database functionality<br />

title<br />

Aalborg University, <strong>Mobile</strong> Device Group<br />

In .<strong>Net</strong>, databases are accessed through<br />

ADO.<strong>Net</strong> providing access to such databases<br />

as Oracle, IBM DB2, MySQL, PostgreSQL<br />

SqlComm<strong>and</strong> can used to form queries to the<br />

database<br />

SqlDataAdapter can be used to fill data into<br />

DataSets<br />

Data can be bound quite automatically to GUI<br />

elements such as lists etc.<br />

2007<br />

<strong>Mobile</strong> Phone <strong>Programming</strong><br />

title<br />

http://mobiledevices.kom.aau.dk/<br />

<strong>Windows</strong> <strong>Mobile</strong> <strong>Programming</strong><br />

Aalborg University, <strong>Mobile</strong> Device Group<br />

<strong>Windows</strong> very familiar to many users<br />

Well-documented <strong>and</strong> supported commercial<br />

product<br />

<strong>Windows</strong> still not widely used – market shares Q1<br />

2007:<br />

– Symbian 71.1%<br />

– Linux 14.3%<br />

– Microsoft 6.9%<br />

Microsoft gaining on Linux since Q1 2006<br />

Source: Canalys<br />

2007<br />

More information can be found at:<br />

– <strong>C#</strong><br />

http://msdn2.microsoft.com/en-us/library/aa287558(VS.71).aspx<br />

– .<strong>Net</strong><br />

http://msdn2.microsoft.com/en-us/netframework/aa497273.aspx<br />

– <strong>Windows</strong> <strong>Mobile</strong><br />

http://msdn2.microsoft.com/en-us/windowsmobile/default.aspx<br />

<strong>Mobile</strong> Phone <strong>Programming</strong><br />

title<br />

http://mobiledevices.kom.aau.dk/<br />

More Info<br />

Aalborg University, <strong>Mobile</strong> Device Group<br />

http://mobiledevices.kom.aau.dk/<br />

4

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!