我使用getAllPerson()函数并显示TableView中的所有人我想删除所选人员.但removePerson()仅支持iphone,我如何删除Android.任何建议表示赞赏
我想将图片上传到我的手机图库的服务器.
我已经完成iOS设备,这是运作良好.但是,在Android设备中有问题.
我从我的设备库中获取图像并在服务器上发布.这是成功上传的.在此之后,我在服务器上看到.
其图像由Android设备上传,采用.txt格式.(iOS运行良好).
我如何删除问题.请帮助我,我告诉你我的编码结构.
Ti.API.info("success! event: " + JSON.stringify(event));
var image = event.media;
var abc = event.media.imageAsResized(400 , 400);
Ti.API.info(abc.height +" x "+ abc.width);
alert(abc.height +" x "+ abc.width);
var xhr = Titanium.Network.createHTTPClient();
xhr.onerror = function(e)
{
Ti.API.info('IN ERROR ' + e.error);
alert("error");
};
xhr.onload = function()
{
Ti.API.info('IN ONLOAD ' + this.status + ' readyState ' + xhr.responseText);
alert("IN ONLOAD " + this.status + " readyState " + this.readyState + "re " +xhr.responseText);
};
xhr.open('POST','http://reviewprototypes.com/kishan/filetest.php');
xhr.send({file:abc});
},
cancel …Run Code Online (Sandbox Code Playgroud)