如何使用Twitter的API在Android应用程序只发送的tweet [英] how to use twitter api in android application for send tweet only
本文介绍了如何使用Twitter的API在Android应用程序只发送的tweet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道的关于Twitter API的Android应用程序.... 请给我链接或来源,Twitter的API而仅仅只有API,用于发送鸣叫......
解决方案
字符串tweetUrl =TEXT https://twitter.com/intent/tweet?text=PUT这里和放大器;网址=
+https://www.google.com;
开放的我们的uri = Uri.parse(tweetUrl);
startActivity(新意图(Intent.ACTION_VIEW,URI));
有关更多信息,请查看我的回答对这个其他职位
<一个href="http://stackoverflow.com/questions/5741818/how-to-tweet-from-android-app/10358126#10358126">How从Android应用程序鸣叫?
i want to know about twitter api for android application.... please send me link or source for twitter api which api just only for send the tweet....
解决方案
String tweetUrl = "https://twitter.com/intent/tweet?text=PUT TEXT HERE &url="
+ "https://www.google.com";
Uri uri = Uri.parse(tweetUrl);
startActivity(new Intent(Intent.ACTION_VIEW, uri));
For more info, check my answer on this other post
How to tweet from Android app?
这篇关于如何使用Twitter的API在Android应用程序只发送的tweet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文