开发者

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

开发者 https://www.devze.com 2023-03-20 11:40 出处:网络
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 brow

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

精彩评论

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

关注公众号