Kategorie-Archiv: .NET Compact Framework 3.5

New Book on .NET CF 3.5 Development (Reviewed)

.NET_CF_3.5

Recently I’ve been asked to do a review of a new published book on Data-Driven .NET Compact Framework 3.5 development.

It is called “.NET Compact Fraework 3.5 Data Driven Applications” by Edmund Tan, which has been released in April 2010.

The book is a pretty good book for developers, who want to start developing .NET Compact Framework Applications with the most recent version. It doesn’t refer to Windows Phone 7 development, which is good, as for business applications the .NET Compact Framework 3.5 technology will be still valid for a longer period of time.

The book itself is structured in 13 chapters, and contains a complete lifecycle of 3 applications from design down to deployment.
Therefore it uses a pretty good story around the applications, which are developed here by sample. It gives an insight in thick, thin and smart clients, as well as in architecture with the MVC Pattern.
Working with databases (Oracle and SQL CE) is as well described as the creation and usage of WebServices. Even the topics ‘Auto Update’ and working with Bluetooth (among other interfaces) are described as well. Not to forget the usage of Sync Services, the book describes the topics Authentication and Encryption as well.
Chapter 7 is all about Best Practices for mobile applications. These topics for beginners are very useful. Unfortunatelly the book has some drawbacks.

Visual Studio 2008 for example is described as a requirement. Unfortunatelly the author doesn’t describe, why Visual Studio 2010 can’t be used in this scenario. (Visual Studio 2010 doesn’t support any Windows Mobile development. It is meant to be used for Windows Phone 7 development and later)
As well it isn’t obvious to the reader, why 2 different database engines get used (Oracle and SQL CE). On the other hand these databse engines are valuable information to the reader, as he get’s described how to work with those different platforms.
The described Dashboard application uses a pull mechanism, where it is requesting new data every minute. This isn’t a good practice, as in this sample it isn’t necessary as well as it is draining the battery. In general battery usage isn’t mentioned at all.
The Bluetooth sample just uses a Bluetooth SerialPort. This means, that the user has to manage Bluetooth connectivity by himself. This isn’t a real life scenario. By the usage of the 32feet Library, this would have had additional value to the reader and the user.
The described Pluginsystem lacks of security. Showing the basic steps is absolutly legal, but unfortunatelly not a real world scenario.
Datasets as the BusinessObject intermediate isn’t a good choice in this book, as the memory usage is increased.
A side not of using Reflection that it is affecting the applications performance an memory isn’t mentioned as well.
Creating a full search scenario is good. Unfortunatelly the coding here creates a security hole for SQLInjection, which isn’t mentioned anywhere.
Using regular expressions for the search scenario is great, but the author doesn’t tell the reader anything about Regular Expressions at all.
While the complete book uses C# code, it isn’t obvious, while Chapter 4 suddenly introduces a VB.NET sample.
The salesforce sample describes the usage of Bluetooth and IrDA as interfaces for exchanging data. This would make it necessary, to have both sales persons to be at the same spot. This isn’t a real life scenario as well.

All in all the book is a good entry point for .NET Compact Framework development, but lacks in the depth of the provided information and background. Nevertheless, as it lacks in a few mentioned details, this book shall be worth a read for beginners, as the story around the applications gives a good template on how to start with the overall application lifecycle.

If you are interested, you can check out the details (including a free chapter download) here.

Touch Controls Suite 2.0 für Windows Mobile

Jetzt, wo jeder aktuell über Windows Phone 7 Series spricht ist Windows Mobile ein wenig in den Hintergrund gerückt. Man darf jedoch nicht vergessen, dass Windows Mobile bzw. Windows Phone Classic einen noch einige Zeit parallel zu Windows Phone 7 Series begleiten wird. Nicht nur, dass neue Geräte mit dem “alten” Betriebssystem erscheinen werden – auch viele Businessanwendungen laufen derzeit noch unter Windows Phone Classic und müssen gewartet oder erweitert werden.

Hierbei will man seinem Kunden auch ein Erlebnis bieten – graue Schaltflächen auf weißem Hintergrund sind out. Doch wie?

Eine Möglichkeit ist die Touch Controls Suite 2.0. Dieses Produkt bietet einigen interessante Steuerelemente. Hierzu gehört beispielsweise der GlassDialog, welcher einen halbtransparenten Dialog darstellt, wie man ihn oft in Webanwendungen sieht.

Auch die TouchPictureBox bietet direkt Funktionalität, um in Bilder Zoomen zu können, als auch fingerbasierendes Scrollen.

Dies sind aber nur einige Beispiele. Viele weitere Steuerelemente unterstützen von Haus aus Alpha Transparenz und sehen darüber hinaus wesentlich besser aus.

Eine weitere Perle dieser Suite ist, dass Anwendungen, welche generell mit den Steuerelementen ausgestattet werden ebenfalls auf dem Desktop (unter Beachtung bestimmter Spielregeln) ausgeführt werden können.

Alle weiteren Infos und ein Video findet man auf der Website:

http://www.mirabyte.com/de/produkte/windows-mobile/touch-controls-suite/information.html

 

Eine offizielle Presse-Mitteilung gibt es auch bei OpenPR:

http://www.openpr.de/news/411604/Touch-Controls-Suite-2-0-Stylus-freie-fingerfreundliche-Anwendungen-auf-der-Windows-Mobile-Plattform.html

Entwicklen von Multitouchanwendungen für den HTC HD2 in verwaltetem Code

Wie es zu erwarten war, ist die Entwicklecommunity hinsichtlich Multitouch aktiv. So gibt es mittlerweile eine .NET CF Bibliothek von einem Entwickler namens SciLor, wodurch eigene Anwendungen Multitouch unterstützen können.

Zwar ist die Entwicklung noch in den Kinderschuhen – ein erster Schritt ist jedoch getan.

Die Bibliothek, sowie ein paar Samples finden sich hier.

Neue Windows Mobile SDK Entwicklungszertifikate verfügbar

Wer aktuell versucht mobile Anwendungen oder Installationsdateien mit den Zertifikaten des Windows Mobile SDKs zu signieren erlebt eine kleine böse Überraschung: Die Zertifikate sind nicht mehr gültig.
Der Grund hierfür liegt darin, dass die Zertifikate mit dem 31.12.2009 abgelaufen sind.

Aus diesem Grund wurden neue Zertifikate im Windows Mobile Blog zur Verfügung gestellt. Zu finden sind diese mit entsprechenden Installationsanleitungen hier: http://windowsteamblog.com/blogs/wmdev/archive/2010/01/12/new-windows-mobile-developer-certificates.aspx

.NET CF 3.5 HotFix for Web Services over SSL

Have you ever experienced the problem, that your .NET CF application throws the following exception using a SSL Connection?

System.Net.WebException: Unable to read data from the transport connection (System.Net.Sockets.SocketException: Unknown error (0x0))

If this is the case, than you probably want to get the HotFix for Web Services over SSL for .NET CF 3.5.

Unfortunatelly this error exists with the .NET CF 2.0, where no fix is available and I’m not commenting this any further. ;-)

Hello World with Windows Mobile 6

You know, that a “Hello World” is always the first starting point on how to develop your first application.

Maarten Struys, a Netherlands Device Apllication Development MVP, has assembled some videos in english, to give you a staring point in creating your first mobile application in managed Code. The 20 minutes videos cover as well, which tools are needed to start your mobile development.

Just take a look over here, if you are interested. Good job Maarten!

Programmieren des G-Sensors mit dem .NET Compact Framework / Programming withe the G-Sensor in Managed Code

Zugegeben – das HTC Diamond / MDA Compact IV ist schon ein nettes Gerät. Die neue eigens entwickelte Bedienoberfläche sieht schon klasse aus. Doch interessanter als diese finde ich persönlich den implementierten Bewegungssensor.

Dieser wird u.a. vom Fotoalbum, dem Opera Browser verwendet und dient zum automatischen Drehen des Displays. Das Spiel Teeter selbst wurde eigens hierfür entwickelt, womit durch Gewichtsverlagerung eine virtuelle Kugel durch ein Labyrinth bewegt werden muss.

(Teeter, Quelle: http://www.worldofppc.com/HWTests/diamond.htm)

Mittlerweile gibt es auch einige Spassanwendungen, wie das “Diamond Beer” (http://wmpoweruser.com/?p=581) oder das virtuelle Lichtschwert “HTC Light Saber” (http://www.freewarepocketpc.net/ppc-download-htc-light-saber-v1-0.html), oder sogar die virtuelle Wasserwaage “Kai’s Wasserwage.Net”(http://pocketland.de/42544/Kai_s_Wasserwaage_fuer_HTC_Touch_Diamond.html), welche dieses Sensor ebenfalls verwenden.

(Diamond Beer, Quelle: http://wmpoweruser.com/wp-content/uploads/2008/08/diamondbeer.jpg)

(HTC Light Saber, Quelle: http://www.freewarepocketpc.net/img2/pocket-pc-light-saber.jpg)

(Kai’s Wasserwaage.Net, Quelle: http://pocketland.de/images/screenshots/screenshot.42544.gif)

Viele weitere Applikationen finden sich beispielsweise hier.

Das interessante daran ist jedoch, dass viele dieser Anwendungen ein installiertes .NET Compact Framework benötigen. Somit muss sich wohl der Sensor auch von verwaltetem Code ausführen lassen…

Koushik Dutta gibt in seinem Post Informationen, wie der Sensor Daten bereitstellt und bietet einen Managed Wrapper zusätzlich als Download an.

Das nenne ich doch mal innovativ!

 

- English Version -

 

Indeed – the HTC Diamond / MDA Compact IV is a cool device. The especially developed UI is awesome.

But more interesting than that is the builtin Accelerometer.

This one is used by the included photo application, the Opera Browser and helps to rotate the screen automatically. The included game Teeter was developed especially for this, where you you can navigate a virtual ball through a labyrinth via acceleration.

(Teeter, Source: http://www.worldofppc.com/HWTests/diamond.htm)

Meanwhile there are a few fun applications available which make use of the accelerometer, like “Diamond Beer” (http://wmpoweruser.com/?p=581) or the virtual Light Saber “HTC Light Saber” (http://www.freewarepocketpc.net/ppc-download-htc-light-saber-v1-0.html), or even a virtual level “Kai’s Wasserwage.Net”(http://pocketland.de/42544/Kai_s_Wasserwaage_fuer_HTC_Touch_Diamond.html).

(Diamond Beer, Source: http://wmpoweruser.com/wp-content/uploads/2008/08/diamondbeer.jpg)

(HTC Light Saber, Source: http://www.freewarepocketpc.net/img2/pocket-pc-light-saber.jpg)

(Kai’s Wasserwaage.Net, Source: http://pocketland.de/images/screenshots/screenshot.42544.gif)

A few more interesting applications can be found here for example.

Even more interesting than that is the fact, that a lot of these applications need a preinstalled .NET Compact Framework. This means, that there has to be a possibility to use the sensor from managed code…

Koushik Dutta gives in his post information, how the sensor delvers data and offers additionally a managed Wrapper as a download.

This is, what I call innovation!

Neue Webcastserie zur Entwicklung von Windows Mobile Anwendungen / New Webcast Series on Windows Mobile Application Development

Wie Constanze berichtet, wird es ab August eine neue englische Webcastserie zur Entwicklung von Windows Mobile Anwendungen geben:

New Windows Mobile Application Development chat series coming up in August

Mark your calendars. Starting on August 12th, 2008 we are launching a new chat series that focuses exclusively on Windows Mobile Application Development. This chat will cover the tools and technologies used to develop applications using the Windows Mobile operating system. MVPs and members of the Windows Mobile product team will be joining this chat to answer your questions. For the August chat, we will also go through the top 10 FAQ on Windows Mobile.

The chat will take place on August 12, at 9 AM PST. To register for it, please click on this link: http://www.microsoft.com/communities/chats/vcs/08_0812_msdn_MOBILE.ics.

Stay tuned on any upcoming chats! 

 

- English Version -

 

Constanze reports, that in august a new webcast series is starting on Windows Mobile Application Development:

New Windows Mobile Application Development chat series coming up in August

Mark your calendars. Starting on August 12th, 2008 we are launching a new chat series that focuses exclusively on Windows Mobile Application Development. This chat will cover the tools and technologies used to develop applications using the Windows Mobile operating system. MVPs and members of the Windows Mobile product team will be joining this chat to answer your questions. For the August chat, we will also go through the top 10 FAQ on Windows Mobile.

The chat will take place on August 12, at 9 AM PST. To register for it, please click on this link: http://www.microsoft.com/communities/chats/vcs/08_0812_msdn_MOBILE.ics.

Stay tuned on any upcoming chats!

Windows Mobile LOB Accelerator 2008

Wie lassen sich heutzutage Enterprise Anwendungen, oder oft auch Line of Business (LOB) Anwendungen genannt, mit neuesten Technologien und Best Practices realisieren?

Ein solches Beispiel zeigt der Windows Mobile Line of Business Solution Accelerator 2008 von Microsoft.

Dieser verwendet neben dem Visual Studio 2008 als Basis auch das .NET Compact Framework 3.5 inklusive LINQ und WCF Store and Forward auch die Sync Services für ADO.NET. Zusätzlich sind viele Tipps und Trick enthalten, welche man kennen sollte.

Eine genaue Übersicht über das Packet erhalten Sie hier.

 

- English Version -

 

Wie can enterprise applications, or as well called Line of Business (LOB) applications, be developed with the latest technologies and best practices?

Such a sample is now available as Windows Mobile Line of Business Solution Accelerator 2008 by Microsoft.

This sample uses Visual Studio 2008 and the .NET Compact Framework 3.5 including LINQ and WCF Store and Forward as well as the Sync Services für ADO.NET. Additional Tips and Tricks are included, which you should know about.

A detailed overview can be found here.