1

Porting MIDlets from Symbian to Nokia Asha (Featured Article)

Porting MIDlets from Symbian to Nokia Asha by skalogir

PortedCatBarExpanded.png

This article provides instructions on how to port existing MIDlets written for Symbian to Nokia Asha software platform. The article covers a number of porting aspects ranging from heap memory limitations, image processing, virtual keyboard, persistent storage, location aware MIDlets, etc.

There are also companion articles How to develop Java ME applications on Symbian and Porting MIDlets from Nokia Asha to Symbian which help you write code to address the biggest possible market of Nokia devices.

See Featured Article for other great articles from the community.

How to use SQLite in Windows Phone (Featured Article)

SQLite.png This week’s featured article is How to use SQLite in Windows Phone by mfabiop.

A very common task for most of the applications is to store and access data. Almost all applications have to store some kind of user data for a later use. Databases are preferred for storing any such structured data which would persist in the application.

The article shows how to setup SQLite for your Windows Phone 8 projects; the steps are well documented with appropriate screenshots in the article. Additionally, with a simple code example, the article also demonstrates how to use a SQLite database to store/retrieve structured data in your applications.

Read the article and  implement SQLite in your WP applications.

Lumia App Labs #9 – Developing Windows Phone 8 apps with file and URI associations (Featured Video)

App-to-app-communication support is a powerful addition to Microsoft Windows Phone 8 that enables your apps to use the functionality of other apps. It also can help you increase the discoverability of your apps in Windows Phone Store, when you register the types of files and URI resources that the apps can enhance.

In this lab, you’ll learn how to use file and URI associations in Windows Phone 8 for app-to-app communication. You can use such associations to automatically launch your app when another app launches a specific file type or URI scheme. A deep link is used to send a reference to the file or URI to your app. This webinar also introduces the association launching API to launch another app in the same way.

We suggest that you install the Microsoft Windows Phone SDK 8.0 in advance to get the most out of this training lab. While you’ll learn a lot with or without the SDK, you’ll learn more if you have the SDK installed and can begin using the API as soon as you complete the training. Also, it will be helpful to have a Nokia Lumia phone built on Windows Phone 8 available for testing.

A downloadable copy of the slides from the session can be found here: http://www.slideshare.net/nokia-developer/lumia-app-labs-developing-windows-phone-8-apps-with-file-and-uri-associations

Check out details of the other Lumia App Labs, including the future schedule, here: http://www.developer.nokia.com/Develop/Windows_Phone/Learn/

Getting Started on WIndows Phone 7 Silverlight

I have been on the road with the Nokia / Microsoft outreach
program and we have been teaching Windows Phone 7 programming to developers in
Paris, Madrid, Milan, and Berlin. This has been occupying my time and so my
blog has been suffering.

A couple of weeks ago I promised that I would discuss the
process of moving a Qt/QML data driven application to Silverlight. As you may
recall, I did a similar series of blog posts on moving a side scrolling game
from Qt/QML to XNA.

The project of moving a data driven application is somewhat
more complex because you have to worry about mapping pages, page flows, and
page controls from QML into Silverlight. This can be challenging if your
application was developed before the release of Qt Components for Symbian and
you developed your own equivalent of a page stack.

In this series, I will make the assumption that you have a
page stack model for navigating pages my pushing and popping pages on the page
stack. If you have a more hardwired page model, then you will have to make
adjustments to your code to map your method of page navigation into
Silverlight.

Some of the other challenges in moving code from Qt/QML to
Silverlight is the lack of Signals and Slots in C#. There is a comparable
mechanism that allows you to create and connect custom events with custom event
handlers that can be used in place of Signals and Slots. There are some “gotchas”  in using events, but we will discuss those
later in this series.

In moving an app from QML to Silverlight I have identified six
steps that can act as a “porting” process. These steps are as follows:

  1. Identify the QML or Qt Pages.
  2. Determine the Page states
  3. Map the Page navigation model
  4. Enumerate the Page Controls
  5. Identify signal and slot Connections between
    objects
  6.  Map Pages into Silverlight visual  Page Specifications (XAML)  and C# objects
  7.  Find  Silverlight
    equivalents for APIs, controls, and connections

 

It is important to understand that many of the algorithms and much of the code written in JavaScript
and C++ can easily map into Silverlight code behind the Visual Page Specifications.

To
understand this process, you must first understand how Silverlight works. If
you have used Silverlight or Windows Presentation Framework (WPF) in
another context, then these concepts can be directly applied to Windows Phone 7
programming.  If you don’t know anything
about Silverlight, then you are in luck because I will spend my next blog
reviewing the structure of a Silverlight application. This will include an
explanation of the organization or Silverlight applications, XAML, and  the concept of C# code behind.