如何在android中为foursquare应用程序的签入添加照片

如何在android中为foursquare应用程序的签入添加照片,android,image,foursquare,Android,Image,Foursquare,我正在从我的android应用程序中进行foursquare插件,在这里,我可以签入并使用以下代码添加提示 办理登机手续: Result<Checkin> result = getFoursquareApi().checkinsAdd(venueId, null, getString(R.string.checkin_msg), null, null,null,null,null); Result-Result=getFoursquareApi().checkinsAdd(venu

我正在从我的android应用程序中进行foursquare插件,在这里,我可以签入并使用以下代码添加提示

办理登机手续:

Result<Checkin> result = getFoursquareApi().checkinsAdd(venueId, null, getString(R.string.checkin_msg), null, null,null,null,null);
Result-Result=getFoursquareApi().checkinsAdd(venueId,null,getString(R.string.checkin_msg),null,null,null,null,null);
添加提示:

Result<CompleteTip> resultTip = getFoursquareApi().tipsAdd(venueId, Appsconstant.SOCIAL_NETWORK_MESSAGE, "https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRpdDBUIVfZo3tcyuNKZU_2lHjvMri6ChfQ03DetZITYPi-HI9-RA");
Result resultTip=getFoursquareApi().tipsAdd(venueId,Appsconstant.SOCIAL\u NETWORK\u消息,”https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcRpdDBUIVfZo3tcyuNKZU_2lHjvMri6ChfQ03DetZITYPi-HI9-RA);

但在提示中,我给出了图片的url。但它并没有添加到提示中。我犯了什么错误?以及如何添加带有提示的图像。请任何人帮助我。

API没有说你可以专门添加图像,只是说你可以在这个提示中添加一个“感兴趣的url”。这就是你正在做的


参考:

k。是否有任何源代码的贴士照片或签入。是的意思是可以给我一个tati的sour代码。我用下面的代码添加图像。Result resultImg=getFoursquareApi().photosAdd(null,null,venueId,null,null,null,null,data);但是resultImg.getMeta().getCode()的值是400,resultImg.getMeta().getErrorDetail()的照片格式无效。do tis的正确照片格式是什么。最后,我通过以下代码Result resultImg=getFoursquareApi().photosAdd(null,tipId,null,null,null,null,data)得到了添加照片的答案;在这种情况下,必须给出数据作为所选图像的字节数组值。