开发者

How can I invoke a local HTMl file in a browser using PlatformRequest() in J2me?

What is the for开发者_StackOverflow社区mat for such an invocation?For eg if I have file Test.html in the same directory as the applicaion and using platformRequest, how do I invoke this file in a browser?


The correct function would be platformRequest(file:///path/to/Test.html);

BUT, and this is a big but, platformRequest by standard only has to support http:// (for .jad/.jar retrieval) and tel: strings. So, if you try and open a local file, it all depends on the device and if the manufacturer supports this string (file:) for platformRequest


You can use the following example:

platformRequest("http://www.cocacola.com");
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜