Open file with MIDlet.platformRequest ()

Is it possible to open a device to open a file on disk using the method MIDlet.platformRequest(String url)? I was hoping to use the following:

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

But that just throws an exception ConnectionNotFound. I specifically use the BlackBerry platform, but I do not have access to the BlackBerry proprietary API. A file can be of any type, so obviously I do not expect it to handle everything.

Greetings

+3
source share
1 answer

No, it is not possible to open arbitrary files using a platform request. MIDP 2.0 requires devices to support platform request only for URL and tel: connections. All other circuits are optional and device dependent.

Nokia S60, , :// Nokia. , Blackberry.

JSR211 Content Handler API. , Blackberry.

+7

Source: https://habr.com/ru/post/1699509/


All Articles