SL8R.co.uk - Code Zone

Code, Code and Code

SL8R.co.uk - Code Zone header image 4

J2ME: Splash Screen Timer

April 4th, 2008 · No Comments

Timer Example
private Timer myTimer;
  myTimer = new Timer();
  // Show Splash Screen
  myTimer.schedule( new waitSplash(), 2000 );
// process the splash screen timer
  private void dismiss()
  {
  myTimer.cancel();
  // change to your form here
  myDisplay.getDisplay(this).setCurrent(yourForm);
  }
// if we reached here then timer has completed
  private class waitSplash extends TimerTask
  {
  public void run()
  {
  dismiss();
  }
  [...]

[Read more →]

Tags: Code

J2ME: Get IMEI Number

April 4th, 2008 · No Comments

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

addthis_url = ‘http%3A%2F%2Fwww.sl8r.co.uk%2F2008%2F04%2F04%2Fj2me-get-imei-number%2F’;
addthis_title = ‘J2ME%3A+Get+IMEI+Number’;
addthis_pub = ”;

[Read more →]

Tags: Code