Java - Code examples

All  |  In-app purchasing   |  In-app advertising  |  Location  |  Games  

10 May 2013
Composed UI

Composed UI

Composed UI, an example application for Nokia Asha software platform, combines three different user interface implementations for presenting list based data: Split view, list view and grid view. The split view and the grid view utilise custom, grid layout. The list items in the split view are also custom items. All the views in the application are Form based. The example also demonstrates how to manage persistent data including storing and restoring the application state.

This example application is hosted in Nokia Developer Projects.

Project summary | Design and implementation notes | Release notes

09 May 2013
LWUIT RLinks v1.1

LWUIT RLinks v1.1

This Java ME example application demonstrates how to build a network-accessing reader app using LWUIT for Nokia Asha software platform 1.0 and Series 40. The application connects to Reddit, a social news service where registered users submit content, typically in the form of a link. Other users then rate the submissions, which affects the ranking and position of the post on the site's pages and front page.

This example application is hosted in Nokia Developer Projects.

Project summary | Design and implementation notes | Release notes

09 May 2013
Nokia Asha UI Component Demos

Nokia Asha UI Component Demos

This Java ME application is a MIDlet suite consisting of demos that show how to use LCDUI components on Nokia Asha software platform 1.0. Designers get an impression of how the components actually look like on the phone, and developers can see how the UI components are used in an application by examining the source code. The various examples are implemented as independent MIDlets. Note that this example application was created to demonstrate the UI components and does not have any actual engine implementation.

This example application is hosted in Nokia Developer Projects.

Project summary | Design and implementation notes | Release notes

09 May 2013
LWUIT Tourist Attractions v1.3

LWUIT Tourist Attractions v1.3

LWUIT Tourist Attractions is a location-aware tour guide to city highlights. The application has been developed with LWUIT for Nokia Asha software platform 1.0 and Series 40 library and it is a remake of the original LCDUI version. It demonstrates the use of the Location API (JSR-179) and HERE Maps API for Java ME. The map can be zoomed using the pinch gesture. The Series 40 version uses the In-App Purchase API with non-DRM protected application content. The application has been tested on Nokia Asha software platform 1.0 and Series 40 full touch phones.

This example is hosted in Nokia Developer Projects.

Project summary | Design and Implementation notes | Release notes

09 May 2013
LWUIT Slide Puzzle v1.1

LWUIT Slide Puzzle v1.1

Slide Puzzle is a simple LWUIT-based puzzle game for Nokia Asha software platform 1.0 and Series 40 phones. It demonstrates how LWUIT components can be used in a game context. Both non-touch and touch phones are supported, with drag gestures where available. It also gives an idea of how to use the camera, and helper threads for animating the interface.

This example is hosted in Nokia Developer Projects.

Project summary | Design and Implementation notes | Release notes

09 May 2013
RLinks v1.1

RLinks v1.1

This Java ME example application shows how to port a network and content-intensive utility application from Android to Nokia Asha software platform 1.0 and Series 40 touch phones. The application demonstrates handling network connections, retrieving and storing data using a JSON REST API, and laying out custom view items.

This example is hosted in Nokia Developer Projects.

Project summary | Implementation notes | Design notes | Porting notes | Release notes

09 May 2013
Weather App v1.3

Weather App v1.3

WeatherApp is a simple weather application showing a four-day forecast with temperatures, relative humidity, wind speed, and wind direction. The application retrieves the current location via CellID or a user-defined location and uses it to retrieve the weather forecast. The World Weather Online APIs are used for both weather data and location search data. The application uses the org.json.me library for parsing JSON. The example also features in-app advertising. It is a lucrative monetisation model that enables revenue generation even for free applications. The ads are provided by Inneractive.

This example is hosted in Nokia Developer Projects.

Project summary | Implementation notes

09 May 2013
Frozen Bubble v1.1

Frozen Bubble v1.1

This Java ME example application demonstrates how you can port a fullscreen game from Android to Java ME in Nokia Asha software platform 1.0 and Series 40 touch phones. In this port the same game logic code and most of the resources were reused while new code was written for starting up the game, handling menus, and playing sounds. The code is based on the Android version of Frozen Bubble, created by Pawel Aleksander Fedorynski. The Java ME port, just like the original Frozen Bubble, is covered by GNU GPL v2.

This example is hosted in Nokia Developer Projects.

Project summary | Implementation notes | Porting notes | Release notes

09 May 2013
Battletank v1.4

Battletank v1.4

Battletank is a tank game example created with Java ME. It demonstrates the usage of Java ME gaming features: sprites, tiles, and so on. Additionally, the example shows a reusable game structure where resources are loaded according to the screen size of the phone. The latest version has been optimised for full touch phones. On Series 40 platform, the application uses the In-App Purchase API with DRM protected application content.

This example is hosted in Nokia Developer Projects.

Project summary | Implementation notes | Release notes

09 May 2013
Explonoid v1.2

Explonoid v1.2

Explonoid is an Arkanoid clone implemented with Java ME. It demonstrates the usage of Java ME gaming features: Sprites, LayerManager etc. It also shows some key points of designing an application that scales to different resolutions. The game has support for keyboard, touch screens, and acceleration sensors. This application has been optimised for full touch phones.

This example is hosted in Nokia Developer Projects.

Project summary | Implementation notes | Release notes

09 May 2013
Paint v1.3

Paint v1.3

This MIDP application demonstrates the use of touch events in Nokia Asha software platform 1.0 and Series 40 touch phones. It shows how to do high-performance touch event handling as well as circumvent touch screen limitations by using simple mathematics. Additionally, some reusable custom UI components are introduced. The latest version has been optimised for full touch phones and multi-point touch support has been added.

This example is hosted in Nokia Developer Projects.

Project summary | Implementation notes

09 May 2013
Racer v1.2

Racer v1.2

This Java ME application demonstrates use of the Gesture API and the Sensor API. It also shows some key points to consider when developing a game for Nokia Asha software platform 1.0 and Series 40 phones. The application is a simple racing game that runs in touch and type and full touch UI.

This example is hosted in Nokia Developer Projects.

Project summary | Implementation notes | Release notes

09 May 2013
Sudokumaster v1.2

Sudokumaster v1.2

This example application demonstrates how to design a simple game, add dynamic layout control for multiple screen resolutions, and use several input methods (key, touch, and key and touch). The application has been tested on Nokia Asha software platform 1.0 and Series 40 full touch phones.

This example is hosted in Nokia Developer Projects.

Project summary | Implementation notes

09 May 2013
Tourist Attractions v1.5

Tourist Attractions v1.5

Tourist Attractions is a location-aware tour guide to city highlights. It presents the most notable sights nearby and shows detailed information on them. The application demonstrates the use of the Location API (JSR-179) and HERE Maps API for Java ME. The map can be zoomed using the pinch gesture. The Series 40 version uses the In-App Purchase API with non-DRM protected application content. The application has been tested on Nokia Asha software platform 1.0 and Series 40 full touch phones.

This example is hosted in Nokia Developer Projects.

Project summary | Implementation notes | Release notes

14 December 2012
Drumkit v1.2

Drumkit v1.2

This Java ME application demonstrates the usage of multiple audio players on Series 40 devices. The updated version has a new acoustic kit and pad kit views and multitouch support for Series 40 full touch devices, optimised graphics drawing, and audio playback.

This application is hosted in Nokia Developer Projects.

Project summary | Implementation notes | Release notes

30 November 2012
Series 40 UI Component Demos v2.1

Series 40 UI Component Demos v2.1

This Java ME application is a MIDlet suite consisting of demos that show how to use LCDUI components in Series 40 full touch applications. Designers get an impression of how the components actually look like on the phone, and developers can see how the UI components are used in an application by examining the source code. Version 2.1 of the application adds various CustomItem examples, a Keypad example, and a Menus example. The suite supports Series 40 UI full touch, touch and type, and non-touch devices.

This example is hosted in Nokia Developer Projects.

Project summary | Implementation notes | Release notes

01 November 2012
Tic-Tac-Toe Over Sockets

Tic-Tac-Toe Over Sockets

Tic-Tac-Toe Over Sockets port for Series 40 touch and type and full touch devices. This Nokia example demonstrates the use of datagrams for peer discovery and the use of TCP sockets for peer-to-peer communication. The game is also interoperable with the corresponding apps on Symbian, MeeGo Harmattan and Windows Phone platforms.

This example is hosted in Nokia Developer Projects.

Project summary | Design and Implementation notes | Release notes

17 October 2012
aMaze

aMaze

3D maze game for Series 40 full touch phones. This Nokia example game demonstrates the use of Mobile 3D Graphics API, gestures and accelerometer sensor. The concept of the game is classic and simple: guide the marble through the maze by tilting the phone until the time runs out. The gestures utilised in the game are pinch-to-zoom and double tap.

This example is hosted in Nokia Developer Projects.

Project summary | Design and Implementation notes | Release notes

21 June 2012
FrameAnimator v1.1

FrameAnimator v1.1

This simple Java ME application demonstrates the usage of FrameAnimator class with the Gesture API introduced in the Series 40 6th Edition, Feature Pack 1. The application has been tested on Series 40 full touch devices.

This example is hosted in Nokia Developer Projects.

Project summary | Implementation notes

01 October 2010
MIDP: WordPress Example

MIDP: WordPress Example

This Java ME application is a WordPress blogging client that demonstrates the use of the canvas-based TextEditor API for text input.

30 September 2010
MIDP: Compass Example

MIDP: Compass Example

This Java ME application demonstrates the Location API and Scalable 2D Vector Graphics API features.

Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved