BlackBerry – use MIDlet Platformrequest() opens the file

Can I use MIDlet Does the platformRequest (string URL) method let the device open the file on disk? I want to use the following:

midlet.platformRequest("file:///path/to/file/file.png");

But this will only throw a connectionnotfound exception I specifically use the BlackBerry platform, but I cannot access the proprietary BlackBerry API Files can be of any type, so obviously I don't want it to handle every one

Cheers!

Solution

No, it is not possible to open any file using a platform request MIDP 2.0 requires that the device only supports URL and Tel: connected platform requests All other options are optional, depending on the equipment

The Nokia S60 phone seems to support file: / /, as Forum Nokia pointed out But you need to validate other platforms, including BlackBerry

You can use the JSR 211 content handler API as an alternative I believe it will be supported in newer BlackBerry devices

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>