语言

Menu
Sites
Language
[Gear] openning image in gallery NOT working

Hi!

I am playing with SampleCamera.
I need to open photo in built-in image previewer.

Calling this:

var appControl = new tizen.ApplicationControl("http://tizen.org/appcontrol/operation/view",                                                                                "file:///opt/usr/media/Images/myimage.jpg"); 
    
tizen.application.launchAppControl(
 appControl, 
 null,
 function() {console.log("launch appControl succeeded"); },
 function(e){console.log("launch appControl failed. Reason: " + e.name + ", " + e.message);});

results in:
    previewer app is openned but displays broken image icon.

Tried all possible variants of image path, but with same result;
How to make this work ?

 

响应

2 回复
AVSukhov

Hello,

Is file created in the code? If yes, then you need to update the Media DB.

For this you need to call scanFile() from Content API.

Serhii Kolomiiets
You will laugh, but even after successful registering to Content DB it still can't be previewed with system Gallery app ... O_O Did you have success with it instead ?