Java Documentation
Areas of interest
Networking - Java

SNAP Mobile: Standard Game Requirements
This document contains the technical, usability, and publishing requirements for SNAP Mobile games. These requirements apply to developers who use the SNAP Mobile Client API to create SNAP Mobile games for mobile devices that support the Java™ Platform, Micro Edition (Java ME) technology. This document serves as a standard reference document for SNAP Mobile game compliance testing.

Nokia NFC Unlock Service MIDlet
Use the Nokia NFC Unlock Service MIDlet to unlock the secure element on the Nokia 6131 NFC. The Nokia NFC Unlock Service MIDlet connects to a server and the connection is used to add a new set of authentication keys to keyset version 42 with the ENC, MAC, and KEK keys having the value 404142434445464748494A4B4C4D4E4F.

MIDP 2.0: End-to-End Sockets API Example v1.1
This example illustrates an enterprise system that includes a Java MIDP mobile client, a server-based database, and Web portals (PHP and JSP implementations). Documentation is included in the package. In the updated version, the previously incomplete PHP Web UI functionality has been improved.

PC Connectivity over Bluetooth in Java™ Applications (with Examples)
This resource demonstrates how to create Java™ applications that use Bluetooth communication between a PC and a mobile device. The document focuses, from Java programming point of view, on how to configure and use two alternative PC-side solutions: COM-based and JSR-82-based solutions. The package includes several code examples both for PC and mobile devices.

Enterprise: Developing End-to-End Systems v2.0
This updated document describes the architectures and technologies that are most commonly used in end-to-end enterprise systems today and gives an overview of the terminology and basic concepts of the different technologies. The document also provides an introduction to the protocols used for data transport and presentation. The most important and widely accepted methods for ensuring data integrity and security in mobile devices are also examined.

MIDP: Bluetooth API Developer's Guide v2.0
This document describes the basics of Bluetooth connections and protocols. The RFCOMM and OBEX protocols are described in more detail. The document also provides step-by-step tutorials to help you create example MIDlets using the API.

MIDP: SIP API Developer's Guide v1.1
This updated MIDP document describes the SIP API, which is the JSR-180 Java API for Session Initiation Protocol (SIP) technology. The document focuses on the INVITE session protocol usage. The SIP API is currently supported by the S60 platform, from S60 3rd Edition onwards.

MIDP: Bluetooth RFCOMM and L2CAP Examples
This MIDP application (btsppEcho MIDlet) demonstrates the usage of the JSR-82 Bluetooth API by creating a simple client/server pair using the RFCOMM protocol. This package also includes btl2capEcho MIDlet which demonstrates the same using L2CAP protocol. The Bluetooth API is currently supported by the S60 platform, from S60 2nd Edition onwards and by the Series 40 platform, from Series 40 2nd Edition onwards.

MIDP: Web Services API Developer's Guide (with Example) v2.0
This document describes the XML and Web Services API defined in JSR-172. An example MIDlet using the Web Services API is also included in the package.

MIDP: SIP API Example
This MIDP application demonstrates the usage of the JSR-180 SIP API by creating a SIP INVITE session between two devices. The SIP API is currently supported by the S60 platform, from S60 3rd Edition onwards.

Using Java™ IrCOMM in the Nokia 5140/5140i Imaging Device v1.1
This technical note describes how to use IrCOMM in the Nokia 5140 or 5140i imaging device.

MIDP: Bluetooth OBEX Example - Business Card Exchanger
This MIDP application demonstrates the usage of the JSR-82 Bluetooth OBEX API by exchanging business cards between devices. The OBEX API is currently supported by the S60 platform, from S60 2nd Edition, Feature Pack 3 onwards.

MIDP: Using Cable Connection In Nokia Devices (With Example)
This document gives an overview on how to use CommConnection over cable in Nokia devices that support Java™ ME technology. The document explains how to open CommConnection using Java ME, write data to the serial port, and read data from the serial port. An example application is included in the package.

Games Over Bluetooth: Recommendations To Game Developers v1.0
This document provides recommendations for the use of Bluetooth in the development of multiplayer mobile games.

MIDP 2.0: Introduction to Using Sockets and Datagrams (With Example)
This document briefly presents the use of sockets and datagrams in MIDP 2.0, by use of some simple example MIDlets that are included in the package.

MIDP 2 0: Introduction to Secure MIDlet Communication (With Example)
This document presents an example of a MIDlet that communicates with a back-end application in a secure fashion using the features of MIDP 2.0. An example application is included in the package.

MIDP 1.0: Fruit Machine Example
This package includes a Fruit Machine example MIDlet application. A design document describing the structure and logic of the Fruit Machine example is included in the package.

MIDP 1.0: Introduction to Accessing Remote Databases (With Example)
This document presents an example of a MIDlet that interacts with a remote relational database. Example application is included in the package.

MIDP 1.0: Delivery Example
This package includes a networked application example to track a specific workflow of an imaginary business that uses couriers (highly mobile workers) to deliver packages, such as a bicycle delivery service in a large city. Documentation is included in the package.

Multi-Player MIDP Game Programming
This tutorial explains how to write multi-player games for MIDP phones. It describes the technologies that are available to support multi-player games, and shows what kinds of games are possible with these technologies. It also includes several appendixes that look at technological issues in more depth.

Optimizing the Client/Server Communication for Mobile Applications, Part 3
In Part 3 of this series, we will take a detailed look at the deployment aspect of the application, including the setup of the server side using Apache Tomcat and various other open-source projects. This document also demonstrates how to use the application in a real environment and focuses on performance issues.

An Introduction to Secure MIDlet Communication in MIDP 1.0
This document presents an example of a MIDlet that communicates with a back-end application in a secure fashion.

Optimizing the Client/Server Communication for Mobile Applications Part 2
Part 2 of this white paper series explores the different transport protocols being used and compares them with each other. The working example shows how to build up a generic framework which isolates the protocol layer from the client application. This allows to optimize the transport protocol without the need to change the application itself.

Optimizing the Client/Server Communication for Mobile Applications Part 1
In addition to stand-alone applications running on mobile handsets without any need of interaction with external resources, there is a need for a distributed environment where the client needs to communicate with the server using an IP connection. Part 1 of this white paper series lays out the fundamentals for a general framework using web services or a proprietary protocol.



