发送使用则Geolcation API的Twitter状态 [英] send twitter status with geolcation using api
本文介绍了发送使用则Geolcation API的Twitter状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在使用twitter4j API集成Twitter的API在我的Android应用程序,我想用地理位置来发送的状态,并为我用这个方法
i have integrated twitter API in my android application using twitter4j API and i want to sent status with geolocation and for that i used this method
public void updateStatus(String status,GeoLocation geo) throws Exception {
try {
mTwitter.updateStatus(status,geo);
} catch (TwitterException e) {
throw e;
}
}
和也有地缘
geo=new GeoLocation(location.getLatitude(),location.getLongitude());
在结果mesage发布但在不蠢视图位置,以便谁能帮助我
我的地理位置添加到TWIT状态
THX重播
in result the mesage is posted but with no view location in the twit so can anyone help me to add my geo location to the twit status thx for replay
推荐答案
的毗连的地理位置与你的状态
Concat geo location with your status
mTwitter.updateStatus(status + ": " + geo);
这篇关于发送使用则Geolcation API的Twitter状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文