Articles tagged with: Code
To get an IMEI number:
// Get Sony Ericsson IMEI
String imeiSE = System.getProperty(“com.sonyericsson.imei” );
// Siemens
String imeiS = System.getProperty(“com.siemens.IMEI”);
// Motorola:
String imeiM = System.getProperty(“IMEI”);
For more information about IMEI: http://en.wikipedia.org/wiki/IMEI
I have been trying to find a way of obtaining the phone details using J2ME and I think this will do it:
System.getProperty(“microedition.platform”);
For Nokia Devices, the format is generally: “Nokia XXXX/x.yz”,
The original source for this tip …
To get useful information relating to PHP – for example which version and libaries are installed you can use:
Using a web service feed under REST is useful to obtain information that would otherwise be tricky to get.
For example, to get information out of Technorati (rankings etc) you could use:
$request = ‘http://api.technorati.com/bloginfo?key=[key]&url=’ . urlencode(‘www.jasonslater.co.uk’) …
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 …
//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 …
A recent topic of discussion has been comments in development code.
See the article at:
Software Code Commenting
Many sites use static CSS (Cascading Style Sheets) but 4 Guys from Rolla have an interesting outline of how to dynamically create a CSS style sheet that could allow a user to change things like …

Jason Slater is an independent technologist and blogger.