Cordova将图像保存在图库中

时间:2015-05-20 14:29:41

标签: android cordova gallery

我正在使用Apache Cordova开发一个应用程序,并认识到应用程序拍摄的图像不会显示在库中

 window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function (fileSys) {
        fileSys.root.getDirectory(_ImageFolder,
                { create: true, exclusive: false },
                function (directory) {
                    entry.moveTo(directory, newFileName, successMove, resOnError);
                },
        resOnError);

图像保存到

file:///storage/emulated/0/Android/data/io.cordova.myApp/cache/1432130422117.jpg

那么有没有办法在画廊中展示它们?甚至可能在自己的文件夹中?

0 个答案:

没有答案