1 2 3 4 5

Nokia Asha UI Component Demos – Featured Project

AshaCompDemIcon   Nokia Asha UI Component Demos by team Nokia Developer is a our Featured Project of the week. The project which is the ported version of  ​Series 40 UI Component Demos to the newly released Nokia Asha software platform 1.0 demonstrates quite nicely the use of  LCDUI components tested well on the latest Nokia 501.

asha-ui-component-demos-1        asha-ui-component-demos-6

As visible from the pictures above, the projects describes various Nokia Asha UI components like Lists, Canvas, Form etc. The availability of  source code also proves to be of great help for people wanting to start developing for or convert their existing S40 based app to Nokia Asha platform.

Thanks to Nokia Developer team who have been creating great projects which have always proven a great learning resource for developers & this project is no less then that.

- Vineet Jain (on behalf, Projects Moderation team)

Lumia App Labs #11 – Developing applications for Nokia Lumia phones using Telerik controls (Featured Video)

With a membership in the Nokia Premium Developer Program, you’re provided a free license to the entire suite of Telerik RadControls. These controls are designed to decrease the development time for your Nokia Lumia apps and to help increase their ratings in the Windows Phone Store. Over 40 custom are included and they are already used by a number of publishers with top-selling apps. The controls offers a wide range of capabilities to complement the stock UI toolbox, such as powerful animations, data visualisation, and design templates.

In this Lumia App Lab Michael Crump, an evangelist with Telerik, gives you a brief overview of RadControls for Windows Phone, including interaction controls for animations, charting, and trial reminders; productivity controls, including diagnostics; and design controls, including Windows Phone Design Language templates and hub tile controls. Then Michale illustrates how to use the control and development techniques in coding demonstrations.

A downloadable copy of the slides from the session can be found here: http://www.slideshare.net/nokia-developer/lumia-app-lab-getting-started-with-telerik-rad-controls

For more details visit http://www.telerik.com/products/windows-phone.aspx and get your Premium Developer Program membership here: https://www.developer.nokia.com/Developer_Programs/Premium_program.xhtml

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

See Featured Videos for other great videos from the community.

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.

Behind the Scenes: Headset Camera app for the N9

The logical step after the “Volume+ as Camera Button” app (Nokia Store link) for the N9 is another app that allows you to take photos while not touching your N9 at all. While time-triggered photos are fun, remote-triggered photos are.. erm.. “funner”? So what kind of remote “buttons” can we easily get on the N9? The remote control button on the headset is both “remote” and a “button”. Also, as seen in Panucci and gPodder versions since the N900, Bluetooth headset buttons can also be queried by applications. So what do we get by combining remote control and photo taking? The Headset Camera app (Nokia Store link) for the N9! Or – for the visual reader – this:

If you want to integrate such features into your own app, the code for querying the headset buttons is readily available in the gPodder source tree (src/gpodder/qmlui/helper.py):

import dbus
 
class MediaButtonsHandler(QtCore.QObject):
    def __init__(self):
        QtCore.QObject.__init__(self)
        headset_path = '/org/freedesktop/Hal/devices/computer_logicaldev_input_0'
        headset_path2 = '/org/freedesktop/Hal/devices/computer_logicaldev_input'
 
        system_bus = dbus.SystemBus()
        system_bus.add_signal_receiver(self.handle_button, 'Condition',
                'org.freedesktop.Hal.Device', None, headset_path)
        system_bus.add_signal_receiver(self.handle_button, 'Condition',
                'org.freedesktop.Hal.Device', None, headset_path2)
 
    def handle_button(self, signal, button):
        if signal == 'ButtonPressed':
            if button in ('play-cd', 'phone'):
                self.playPressed.emit()
            elif button == 'pause-cd':
                self.pausePressed.emit()
            elif button == 'previous-song':
                self.previousPressed.emit()
            elif button == 'next-song':
                self.nextPressed.emit()
 
    playPressed = QtCore.Signal()
    pausePressed = QtCore.Signal()
    previousPressed = QtCore.Signal()
    nextPressed = QtCore.Signal()

MediaButtonsHandler is already a QObject subclass, so you can easily expose an instance of this class to your QDeclarativeView rootContext() and connect to the signals in QML (such a “headset button handler” might actually be a good candidate for inclusion into nemo-qml-plugins in Sailfish OS and Nemo Mobile?). As it’s really just using the Python D-Bus bindings to get property changes from Hal devices, the code above should be easy (read: trivial) to port from Python to Qt/C++. Be aware that you need to connect to both …/computer_logicaldev_input_0 and …/computer_logicaldev_input, which can both exist if you have a cable headset and a Bluetooth headset connected at the same time.

You can get the Headset Camera App for the N9 in Nokia Store now, there is also a video on YouTube showing the app. Or start integrating headset button features into your own app or scripts by adapting the code above. One use case that comes to mind is using the previous/next buttons on a Bluetooth headset to control a photo slideshow on the N9 connected to TV-Out. Enjoy :)

Grupo de Estudio WP: Curso Propedeutico Desarrollo en C#

Como parte del proyecto del Grupo de Estudio para el Desarrollo de aplicaciones en Windows Phone estare publicando en la sección de Wiki del proyecto vídeos y demás material sobre como aprender a desarrollar aplicaciones para Nokia Lumia de forma sencilla utilizando las herramientas de diseñador/desarrollador del SDK.

Pero encuentro oportuno invitarles a unirse al Curso Propedeutico de Desarrollo en C# ya que sirve de excelente base para quienes deseen llegar un poco mas allá en sus aplicaciones gracias a conocimientos de Programación.

Dicho curso sera impartido virtualmente mediante sesiones de vídeo por el excelente instructor de Microsoft y experto en Desarrollo de aplicaciones Rodrigo Diaz Concha. El mismo sera impartido de forma totalmente libre y gratuita del 27 al 31 de Mayo del presente año y tiene como finalidad brindar conocimientos básicos sobre el lenguaje C# /.NET a los futuros desarrolladores para luego de algunas semanas iniciar junto a el, un Diplomado de Desarrollo para Windows Phone 8.

El temario del Propedeutico es el siguiente:

Día 1

27 de Mayo 2013 | 20:00 horas (-06:00 GMT)

  • Introducción al curso propedéutico de C#
  • El .NET Framework
  • El Lenguaje C#
  • El primer programa
  • Estructura de un programa en C#
  • Sistema de Tipos
  • Bibliotecas de Clases

Día 2

28 de Mayo 2013 | 20:00 horas (-06:00 GMT)

  • Clases
  • Métodos
  • Variables y alcance
  • Operadores
  • Manejo de excepciones
  • Bloques if y switch
  • Bloques while, do, for, foreach

Día 3

29 de Mayo 2013 | 20:00 horas (-06:00 GMT)

  • Arreglos
  • Listas
  • Diccionarios
  • Herencia
  • Interfaces
  • Clases abstractas

Día 4

30 de Mayo 2013 | 20:00 horas (-06:00 GMT)

  • Delegados
  • Eventos
  • Métodos anónimos
  • Tipos genéricos
  • Interfaces genéricas
  • Métodos genéricos
  • Delimitadores y la palabra clave default

Día 5

31 de Mayo 2013 | 16:00 horas (-06:00 GMT)

  • Lambdas y árboles de expresiones
  • Operadores
  • Proveedores
  • La palabra clave dynamic
  • Interfaz IDynamicObject
  • Interacción con Win32

Para acceder a dicho curso solo deben ingresar a la url que compartiré al final de esta publicación  al cabo de unos días se publicara en dicha web el enlace al streaming de vídeo y luego de unos días cada titulo se convertirá en un enlace al archivo de video descargable para quienes no hayan podido visualizarlo en vivo. Personalmente recomiendo asistir o visualizarlo en vivo ya que con ello podrán hacer consultas sobre el tema.

El enlace del curso es:

http://diplomadowindowsphone.com/2013/05/propedeutico/

Espero verlos ahi y que luego podamos compartir conocimientos en nuestro proyecto

https://projects.developer.nokia.com/desarrolladores

Proximamente publicare información sobre el Diplomado para quienes deseen participar en el.

 

Juan C. Donis – Nokia Developer Champion

WeatherApp – Featured Project

JMEWeatherIcon  This week we have selected WeatherApp as our Featured Project, another Nokia Developer example for the Nokia Asha software platform and Series 40. This project lets users see the upcoming day’s weather forecast for their region or any other city of their choice. GPS/cellid based positioning is used to fetch user’s location which in turn is utilized to get the forecast data in JSON format.

JMEWeather1 JMEWeather2

The project works well with Nokia Asha software platform 1.0, on which the latest device Nokia 501 is based. The project also proves a good source of information for anyone wanting to implement in-app advertising in their apps.

It boasts a huge number of downloads since its creation depicting how much helpful the project has been. For all the technical details about the project see its Wiki.

Thanks to all the people who have been creating such cool & great examples & helping developers in a great manner.

- Vineet Jain (on behalf, Projects Moderation team)

HTML5 Web Apps on Mobile Devices

Get out your Buzzword Bingo cards, we’re talking HTML5. And Canvas2D. And WebGL. See? Check them off and then continue reading. So, while writing “native” apps using JavaScript is definitely possible and works great with QML, some games are just simple enough (or want to have a broad enough audience) to warrant writing everything in HTML5.

This might also be a good time to check off XmlHttpRequest on your BB card, even if none of the following games use it – you might want to use it in your applications or game for things such as server-side stored high scores.

As far as Maemo and MeeGo is concerned, you might want to try out some of these games (especially the WebGL variant of One Whale Trip) in Fennec (aka Mobile Firefox – get it for: N900, N950/N9, Nemo Mobile).

Color Lines: This one simply uses Canvas2D, and works nicely on all mobile browsers that I tested – Maemo, MeeGo, Android, WP7.5, BB Playbook, iOS. Comes in at about 650 lines of rather well-documented JavaScript, and could easily be ported to use QML as a renderer if need be (it would be good to have a QML Plug-In that provides a JavaScript context + (a subset of) the Canvas2D API – without using WebKit (cross that off, too), that is). Also, the N900′s stock browser has performance problems rendering this, while on the same device in Fennec it’s quite playable.

Circle1D: This is a straight Python-to-JavaScript port of a lame 2D “Physics” Engine. It’s kept very (read: very, very) simple, and collision detection could be done in a nicer way, but the inefficiency of it provides a nice benchmark for comparing JavaScript engine performance (I’m sure you can find “engine performance” on your bingo card as well) on mobile devices. The N900′s default browser can’t handle it at all, but Fennec can at least render/simulate it, albeit slowly.

One Whale Trip: This game actually started out as a Python game for PyWeek last September, which was also ported to the N950/N9, but as a test for trying out WebGL, I decided to port it from Python/PyGame to JavaScript/Canvas2D and then to WebGL (the Python version also contains two renderers – a “blitting” one using PyGame surfaces, and an OpenGL one using OpenGL [ES 2 on mobile]). The Canvas2D version works again in all modern mobile browsers (same as above), the WebGL only works on browsers supporting WebGL, for example Fennec/Firefox on both the N900 (even though very slowly) and not in any of the stock browsers (even not the one on the N9). As WebGL is “roughly” the same as OpenGL ES 2.x, one could imagine sharing at least shader programs for a possible C++-or-JavaScript cross-platform application.

So yeah, for smaller applications and/or games, HTML5 is definitely an option. In Firefox OS, your HTML5 web app will – also with WebGL – work and integrate nicely as “native” app. If you also want to create “native” applications (maybe after finishing the HTML5 version), consider encapsulating your JavaScript code so that you can re-use it in QML code, or (in case of WebGL apps), at least design the rendering part of your application in such a way that the code/architecture and shader programs can be shared with a C++ port of your existing HTML5 app.

Another option that’s worth considering: Writing a compatiblity application layer that can load (specially-crafted) WebGL subset applications and display them on a fullscreen SDL-(or Qt)-provided window. Applications written in this WebGL subset could then be deployed on the web as HTML5 application or “natively” running on top of a JavaScript engine only. I’d call that “webglenv“, and no, I haven’t written it yet.

Windows Phone Tip: Problemas al publicar para Windows Phone 7 y para Windows Phone 8

Hola a todos! Hoy quiero hablar un poco de la publicación de aplicaciones para Windows Phone 7 y 8. Básicamente tendremos que tener dos XAP distintos, uno para cada plataforma. La teoría nos dice que el XAP que hayamos compilado para Windows Phone 7, se desplegará a dispositivos 7.X, mientras que el XAP que hayamos compilado para Windows Phone 8 se desplegará a dispositivos 8.X. Pero como todos sabemos, a veces la teoría falla y he visto muchas confusiones…(read more)

Implementing advert in Windows Phone app using Nokia NAX (Featured Article)

This week’s featured article is Implementing advert in Windows Phone app using Nokia NAX with CSharp by Spaso Lazarevic.

Nokia Ad Exchange (NAX), powered by Inneractive is one of the ways of placing advertisements in your Windows Phone applications . This article is a step by step tutorial to add NAX to your applications. The tutorial is very comprehensive, it covers everything from registering and downloading the NAX SDK to displaying a banner ad in your Windows Phone application.

Read this article and monetize your Windows phone applications using NAX.

 

UI Clinic – Series 40 full Touch, April 2013 (Featured Video)

Our UI expert Jan Krebber reviews two apps submitted by Nokia Developer members: Know your phone by Mustafa Mansour Hassanien and Package Tracker by Shai Ifrach of Futuresoft. Jan shares the app reviews and provides details on how the UX of these applications might be improved, as well as providing general guidance that will help with the design of any app.

In addition, Jan takes a quick look into where to place ads in an app, based on a request from last month’s UI Clinic.

You can download the slides from this session at: http://www.slideshare.net/nokia-developer/ui-clinic-series-40-full-touch-april-2013

Find out more about developing for Series 40 at:http://www.developer.nokia.com/Series40 and more about design for full-touch Series 40 apps here: http://www.developer.nokia.com/Resources/Library/Full_Touch/#!index.html

Check out the current webinar schedule here:http://www.developer.nokia.com/webinars