• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

System.getProperty(String key)

 
Rodolfo Machado
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Fellas
I got a NOKIA 6600 and I would like to know where i can find all the keys the phone have for using the method System.getProperty(String key).
In the MIDP System class doesn�t have the method System.getProperties() for capturing the keys .
thanks,
BuGzill
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should support all keys in JDK 1.3 plus microedition.locale and microedition.profiles. But they are not always implemented correctly ...
In MIDP, you can also use custom properties via MIDlet.getAppProperty(). The key/value pair is anything you put into the JAD and manifest file.
 
Rodolfo Machado
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thaks Michael,
but there are some keys to discover if the phone implements some APIs, like Bluetoth, Media, etc..
Do you know this keys?
thanks,
BuGZill
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not think so. But I may be wrong. Anyway, Nokia 6600 implements both the bluetooth and MMAPI.
 
Carlos Quiroz
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Many of the optional package APIs define that their version (and therfore presence) can be discovered checking a system property
For instance the JSR-82 Bluetooth API defines several properties including "bluetoth.api.version" which if exists indicates that the API is implemented in the device.
Similar properties are defined for the PIM API, File Connection API, etc...
Regards
 
Rodolfo Machado
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That�s the point
Is there any list showing some useful properties keys?
Thanks.
[ January 28, 2004: Message edited by: Rodolfo Machado ]
 
Carlos Quiroz
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Those properties are described in each API specification. You can get them going to the correct jcp page, for example for JSR-82 it is http://www.jcp.org/en/jsr/detail?id=82 and so on...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic