android mobile中的图像保存功能,用于设置钛合金墙纸

android mobile中的图像保存功能,用于设置钛合金墙纸,android,titanium-mobile,wallpaper,Android,Titanium Mobile,Wallpaper,我在钛行业工作。我面临一个问题,即我是否可以保存相机、图库、相册或推特订阅源拍摄的图像,以便在使用Tianium作为平台的android设备中设置为壁纸。 我真的需要帮助,因为我被困住了。 任何帮助都将不胜感激。 提前准备好 PS:我已经在iPhone(ios)上做过了。 我的ios工作代码是: button.addEventListener('click',function(e){ var blob=largeImage.toImage(); Titanium.Media.saveToPhot

我在钛行业工作。我面临一个问题,即我是否可以保存相机、图库、相册或推特订阅源拍摄的图像,以便在使用Tianium作为平台的android设备中设置为壁纸。 我真的需要帮助,因为我被困住了。 任何帮助都将不胜感激。 提前准备好

PS:我已经在iPhone(ios)上做过了。 我的ios工作代码是:

button.addEventListener('click',function(e){
var blob=largeImage.toImage();
Titanium.Media.saveToPhotoGallery(blob);       
});

api文档中存在setasystemwallpaper方法,用于在android中将图像设置为壁纸


像Tianium.Media.Android.setSystemWallpaper一样使用(blob,true);并尝试在实际设备上进行测试