我希望我的應用程序圖像不在Gallery中顯示。 通常,我使用:如何在Titanium Android中隱藏目錄?
var dir = null;
if (OS_IOS || !Ti.Filesystem.isExternalStoragePresent()) {
dir = Ti.Filesystem.applicationDataDirectory;
} else {
dir = Ti.Filesystem.externalStorageDirectory;
}
var localStorage = Ti.Filesystem.getFile(dir, "AppImages");
if (!localStorage.exists()) {
localStorage.createDirectory();
}
var imageFilePath = Ti.Filesystem.getFile(localStorage.resolve(), img.jpg);
下載並保存images.But這些圖片展示了Gallery.How使用和編寫不會在Android的畫廊展示的圖片?我認爲當我們寫任何文件時
imageFilePath.write(blob);
它默認顯示在圖庫中。
我試過這@Aman,但設備重啓後,目錄再次顯示與原來的名字。另一件事,如果我沒有使用任何目錄,那我怎麼能隱藏? – Ajit
您是否嘗試使用.bmp擴展名保存它們? – AmniX
沒有格式是.png – Ajit