Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 无法在表视图中显示远程图像-appcelerator_Android_Iphone_Appcelerator - Fatal编程技术网

Android 无法在表视图中显示远程图像-appcelerator

Android 无法在表视图中显示远程图像-appcelerator,android,iphone,appcelerator,Android,Iphone,Appcelerator,我正在用图像视图创建一个表行,在该图像视图中,图像将来自远程url var pic = Titanium.UI.createImageView({ image:photoUrl, width:32, height:32, left:4, top:2 }); 这里的photoUrl类似于“https://xxx.xx.x.com/profilephoto/72990000000D6Wd/T" 在androi

我正在用图像视图创建一个表行,在该图像视图中,图像将来自远程url

var pic =  Titanium.UI.createImageView({
        image:photoUrl,
        width:32,
        height:32,
        left:4,
        top:2
    });
这里的photoUrl类似于“https://xxx.xx.x.com/profilephoto/72990000000D6Wd/T" 在android上,它什么也不显示,在iphone上,它显示一些默认图像。我遗漏了什么吗?

问题解决了

图像url“https://xxx.xx.x.com/profilephoto/72990000000D6Wd/T“正在重定向到登录屏幕。它在浏览器上运行良好,因为我已经登录,但在移动应用程序上无法运行,因为会话id不在那里

所以我修改了url,比如https://xxx.xx.x.com/profilephoto/72990000000D6Wd/T?oauth_token=[代币]

现在它可以正常工作了