Showing posts with label j2me. Show all posts
Showing posts with label j2me. Show all posts

Tuesday, May 1, 2007

Platform Detection in J2ME

J2ME provides system properties which can be used to detect the platform you're running on. This is useful for writing platform-specific code such as serial communication.
System.getProperty("microedition.platform");
On a Windows Mobile 5 smartphone, the IBM J9 VM returns "Windows CE 5.1,Smartphone" followed by the phone model. However, the built-in JVM returns "intent JTE" instead. On a Nokia N90, it returns "NokiaN90-1/5.0607.7.3".

Monday, April 30, 2007

J2ME server socket and camera API

MIDP 2.0 introduces support for running a local server using ServerSocketConnection, as well as support for camera capture (photo and video).