Home > Mobile Computing Tips > > MIDP system properties
Mobile Computing Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 


MIDP system properties


Vartan Piroumiam
02.05.2004
Rating: -3.67- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


MIDP stands for mobile information device profile and if you want to understand the MIDP programming model you have to consider the properties and attributes of the devices that you want your applications, or MIDlets, to run on.

All MIDlets have associated properties and attributes. Properties are standard system properties defined by the CLDC (connected limited device configuration) specification. They pertain to the platform and are maintained and managed by the application management system. Attributes are associated with MIDlets. There are required attributes that are available to all MIDlets, and there are optional attributes.

This short excerpt by Vartan Piroumian from InformIT, looks at the standard MIDP system properties and how to retrieve these properties.


The CLDC/MIDP supports system properties, which are key-value pairs that represent information about the platform and environment in which MIDP applications execute. Conceptually these are the same type of properties that you find in J2SE. Unfortunately, there is no java.util.Properties class in CLDC/MIDP to facilitate your handling of properties.

The MIDP specification defines only a small set of standard properties, which are shown in the table below. Implementations may support additional, manufacturer-specific system properties, but these are nonstandard. You should be aware of what manufacturer- or platform-specific features you use in order to anticipate portability issues.

Like J2SE applications, MIDP applications can retrieve a system property using the java.lang.System class. To retrieve the value of a property, use the System class method

String getProperty(String key)

This method retrieves the property value associated with the key whose value is specified in the call.

Standard CLDC System Properties
Property KeyDescriptionDefault Value
microedition.configurationName and version of the supported configurationCLDC-1.0
microedition.encodingDefault character encoding set used by the platformISO8859-1
microedition.localeName of the platform's current localenull
microedition.platformName of the host platform or devicenull
microedition.profilesNames of all supported profilesnull

Read more about wireless J2ME platform programming at InformIT.


Rate this Tip
To rate tips, you must be a member of SearchMobileComputing.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Enterprise Applications
Turn up the VoWi-Fi
Wireless application development
Symbol upgrades to meet new Visa security standards
Broadcom to give wireless networks zip
IT's mobile middleware dilemma
Analyst: VoIP technology poised to take off
PalmOne serves up Java tools
Dine and dash, courtesy of IBM
Mobile messaging gets a push
Courts, competition can't stop RIM's dominance

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

HomeNewsTopicsITKnowledge ExchangeTipsMultimediaWhite PapersProducts
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2003 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts