As part of the project Bluetooth Push Apps I need to be able to launch one midlet from another midlet. The idea here being that a midlet will be preloaded on a mobile phone and a smaller midlet pushed to it with the content. The pushed midlet upon running will call the handler to process [...]
J2ME: Launch a midlet from another midlet
March 25th, 2008 · 2 Comments
Tags: Analysis
J2ME: Image Types
March 25th, 2008 · 1 Comment
Page 9 of the “Mobile Information Device Profile, v.2.0″ document tells us that a MIDP 2.0 implementation “MUST support PNG image transparency” - anything else is optional.
Some observations from: http://developers.sun.com/mobility/midp/questions/imagetype/
PNG was supported on the test platforms
No other format was supported
Resource names are case-sensitive
File sizes for different formats can vary from 9.1 KB (GIF) to 69.5 [...]
Tags: Analysis
Java (Midlet): Obtain Content Types
March 25th, 2008 · No Comments
//import libraries
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.media.*;
//define class
public class myContentTypes extends MIDlet implements CommandListener
{
private Form myForm; // form to present info
public void startApp()
{
if (myForm == null)
{
// setup the form
myForm = new Form(”Obtain Content Types”);
Command exitCommand = new Command(”Exit”, Command.EXIT, 0);
myForm.addCommand(exitCommand);
myForm.setCommandListener(this);
// get the content types
String[] contentTypes = Manager.getSupportedContentTypes(null);
for (int i = 0; i < contentTypes.length; i++)
{
String[] protocols = [...]
Tags: Code