是否有可能显示一个应用程序列表(intent.createChooser仅),只显示我的手机上的我的推特应用程序(所以htc peep(htc hero)或twitdroid).我试过它,intent.settype("application/twitter")但它没有找到任何Twitter的应用程序,只显示我的邮件应用程序.
谢谢,
沃特
我想知道关于Android应用程序的twitter api ....请发给我关于twitter api的链接或来源api只是为了发送推文....
下面这个例子在另一个线程,我能够鸣叫任的网址:
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));
Run Code Online (Sandbox Code Playgroud)
显示为:
在此处输入文字https://www.google.com
或标签:
String tweetUrl = "https://twitter.com/intent/tweet?text=PUT TEXT HERE &url="
+ "https://www.google.com &hashtags=android,twitter";
Uri uri = Uri.parse(tweetUrl);
startActivity(new Intent(Intent.ACTION_VIEW, uri));
Run Code Online (Sandbox Code Playgroud)
显示为:
把文字放在这里#android #twitter
但由于某些原因,我无法证明两者的URL,并在推特箱的井号标签.
我究竟做错了什么?