04-09-2009 02:58 AM
Is ist possible to invoke the native image-viewer from my application for displaying images?
When I send a jpg to my device via email, I can view it. Then I have different options in the menu like zoom, Fit to Screen, etc...
I would like to use this native-viewer by invoking from my application.
Thanks for help.
Solved! Go to Solution.
04-09-2009 03:45 AM
The following code will invoke the native image viewer
BrowserSession b = Browser.getDefaultSession();
04-09-2009 03:51 AM
good idea; So if I understand correct, then the image needs to be saved before on the bb-filesystem. Ok thats a good solution.
Is there also a way to display it without saving on the filesystem?
I mean, I have saved the image inside my application in Persistant-Storage. Now I want to invoke the viewer with my Image-Object as Parameter.
04-09-2009 04:07 AM
ok, if I do it via the filesystem, which prefix needs my browserpath? do I need
or do I need
I tried it by hand on my device inside my browser; but I don't know how; My image has the path on the filesystem
but which path do I need in the browser to display this?
04-09-2009 04:11 AM - edited 04-09-2009 04:11 AM
Use System.getProperty( "fileconn.dir.photos" ) for path .. By the way, else u should use file:///
04-09-2009 04:13 AM
Thanks for your help;
If anybody else knows a alternative way without fetching a saved file from the filesystem, but invoking direkt, advices are aprecciated.
04-09-2009 05:03 AM
06-19-2009 12:47 PM
This works, but only if you are connected to the network, otherwise the Browser won't do anything. Is there a way to start the browser without it doing that check? I know you can pass a servicebook uid to tell it to use a specific connection type, but how about no connection at all?