S
Simon Brooke
OK, I'm trying to learn how to build a MIDlet. I'm an experienced
server-side Java programmer, but I'm new to Micro Edition. The problem I'm
looking at just now is how do I read configuration for the MIDlet at
startup time?
In the MIDlet package as I understand it, I don't have java.io.File, and I
don't have java.util.Properties, so I can't do
Properties config = new Properties()
config.load( new FileInputStream( new File( CONFIGFILENAME)));
I have a whole variety of configuration variables which I don't want to
hardcode in the MIDlet, and which it isn't reasonable to expect the user
to key in on some crappy mobile phone keypad each startup. So there must
be an easy way to do this...
I need the configuration file to be easy to maintain, so a simple text file
like a Java properties file stored in a resource seems to me the best
solution.
server-side Java programmer, but I'm new to Micro Edition. The problem I'm
looking at just now is how do I read configuration for the MIDlet at
startup time?
In the MIDlet package as I understand it, I don't have java.io.File, and I
don't have java.util.Properties, so I can't do
Properties config = new Properties()
config.load( new FileInputStream( new File( CONFIGFILENAME)));
I have a whole variety of configuration variables which I don't want to
hardcode in the MIDlet, and which it isn't reasonable to expect the user
to key in on some crappy mobile phone keypad each startup. So there must
be an easy way to do this...
I need the configuration file to be easy to maintain, so a simple text file
like a Java properties file stored in a resource seems to me the best
solution.