开发者

opening html file in j2me application

开发者 https://www.devze.com 2023-02-02 10:52 出处:网络
how can open html files(local files) in j2me app开发者_StackOverflow中文版lication? You can access to file from a URL: use HttpConnection then open a

how can open html files(local files) in j2me app开发者_StackOverflow中文版lication?


You can access to file from a URL: use HttpConnection then open a stream and read from it.

You can access data from the .JAD which comes with the MIDlet (or the MANIFEST.MF file if no .JAD): use MIDlet.getAppProperty(String).

You can access database through the rms package of MIDP. Note that you will access only database that your MIDlet create (or other MIDlet created with the shared flag set to true).

You can't access any file from the phone (for ex., in Symbian OS, you can't open a file by URL: "file://C/System/file.ext").

0

精彩评论

暂无评论...
验证码 换一张
取 消