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 is: http://www.forum.nokia.com/document/Forum_Nokia_Technical_Library/contents/FNTL/system_property_microedition.platform_values_for_S60_devices.htm For Sony Ericsson the information is likely to be in the form: SonyEricssonK700i/R2L001 in an [read more...]
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’) . ”; $response = file_get_contents($request); (remember to replace the url with your own and put your API key [read more...]
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 [read more...]
//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); // [read more...]
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 theme colours and fonts dynamically. This could be stored in a back-end database for persistence. The idea behind this is [read more...]


