0

我在 appcelerator 论坛上问过这个问题,但没有回复。我也尝试用照片库上传照片,但失败了。有人可以告诉我钛是否支持通过android中的照片库上传照片?谢谢。

4

1 回答 1

0

我找不到关于这个主题的任何真正的官方文件,但据此。https://github.com/appcelerator/KitchenSink/blob/master/Resources/examples/camera.js

var data = [
    {title:'Camera Basic', hasChild:true, test:'../examples/camera_basic.js'}
];

if (Ti.Platform.osname == "iphone") {
    data.push({title:'Camera Custom Overlay', hasChild:true, test:'../examples/camera_overlay.js'});
    data.push({title:'Camera Overlay Webview', hasChild:true, test:'../examples/camera_overlay_webview.js'});
    data.push({title:'Camera Augmented Reality', hasChild:true, test:'../examples/camera_ar.js'});
    data.push({title:'Save to Gallery (Auto)', hasChild:true, test:'../examples/camera_gallery.js'});
    data.push({title:'Save to File', hasChild:true, test:'../examples/camera_file.js'});    

    Ti.include('version.js');

    if (isiOS4Plus()) {
        data.push({title:'Video Record', hasChild:true, test:'../examples/camera_video.js'});   

        //TODO: this seems to work the first time, but not subsequent. fix for 1.5
        //data.push({title:'Video Editing', hasChild:true, test:'../examples/video_edit.js'});  
    }
}

似乎所有工作的相机功能(包括保存到文件)都设置为iphone

但是,您是否阅读过此页面并尝试过此https://github.com/appcelerator/KitchenSink/blob/master/Resources/examples/xhr_fileupload.js

于 2011-04-28T16:28:37.740 回答