First Steps in Mobile Development for

tediousfifthΚινητά – Ασύρματες Τεχνολογίες

12 Νοε 2013 (πριν από 3 χρόνια και 9 μήνες)

119 εμφανίσεις

First Steps in Mobile
Development for

Windows Mobile Platform




Author:
Plamen

Petrov


History


Windows

Mobile is a family of mobile operating system
developed by Microsoft for
smartphones

and Pocket PCs.



Windows Mobile is predecessor

of Windows Phone.



In February 2010, Microsoft announced Windows Phone to
supersede Windows Mobile, with the new operating system
incompatible with Windows Mobile devices and software.



As a result,

Windows Mobile has discontinued.

History

Versions:



Windows CE(Embedded Compact)



Windows Pocket PC 2000, 2002



Windows Mobile 2003, 2003 SE



Windows Mobile 5



Windows Mobile 6, 6.1



Windows Mobile 7, 7.5



Windows Mobile 8 (coming 2013)




.NET Platform


.NET Platform

Concept for development of
Windows Phone Applications


The platform for development


is

.
NET 4, we

have a choice between

two program

languages
:
Visual Basic and

C#. I prefer C#.

To develop
a

i
nterface

for Windows Phone we use XAML technology.


Tools for developing Windows Phone 7 Application:




-

Microsoft Visual Studio 2010 Express for Windows Phone




-

Microsoft Windows Phone SDK 7.1




-

Microsoft Expression Blend 4


Applications in Windows Phone 7

Hello World Application

1.
Open Microsoft Visual Studio 2010 for Windows Phone.

2.
Create a Windows Phone Application project. Select Windows Phone OS
7.1.

3.
Drag and drop a button with properties Caption: “Click me!”, Name:
button1.

4.
Drag and drop a textbox with Name: textbox1, Text: “”.

5.
Create a Click Event: button1_Click.

6.
Open
MainPage.xaml.cs

and put this code in button1_Click function:

private void button1_Click(object sender,
RoutedEventArgs

e)

{


textBlock1.Text = "Hello World!!!"; //line to be added

}


Hello World Application

7. Press F5 to run the application and this is the result.

Navigation in Windows Phone 7

Local Database






We can use Microsoft SQL Server 2008 CE

(Compact Edition).

But isn’t necessary.

Local Database











Server Connection



WP7 Mango supports both the TCP and UDP protocols and to the

delight of many people, its port
-
range hasn’t been restricted.



So the Mango devices can connect to any IP address and to any port

they want, as long as it’s open.



The
System.Net.Sockets

namespace:



All the required components for creating a successful TCP
-
connection


live inside the
System.Net.Sockets


namespace.



The namespace contains over 25 classes and enumerations but from

those 25 only two classes stand out as an integral piece of the sockets
-

support: The Socket
-
class and the
SocketAsyncEventArgs
-
class.



Understanding these two classes is the key to understanding the

sockets
-
support.





Server Connection

Pivot and Panorama Applications

Pivot and Panorama Applications

XNA Game Applications

Browsers for Windows Phone


Internet Explorer 9


Opera Mini


Browser Plus


Beyond Browser 2


Terra Explorer


UC Browser


Surf Cube


Next Browser

Information sources for development

Windows Phone 7

http://msdn.microsoft.com/en
-
us/library/ff402535%28v=vs.92%29.aspx

http://
dev.windowsphone.com

http://blogs.msdn.com/b/microsoft_press/archive/2010/10/28/free
-
ebook
-
programming
-
windows
-
phone
-
7
-
by
-
charles
-
petzold.aspx



Thank you for your attention!

The End.