Android的,微博,“跟美国的” [英] Android, Twitter, 'FOLLOW US'
问题描述
我建立一个Android应用程序,我停留在一个地方。我已经使用twitter4j,路标的API集成的Twitter在我的应用程序。我成功了书面$ C $下把文本的用户配置文件,但我也希望用户追随我的应用程序,当他们点击按照我们的Twitter按钮。
I am building an android application and I am stuck at one place. I have integrated Twitter in my app using twitter4j, signpost apis. I am successful in writing code for putting text in user profile but I also want the user to follow my app when they click 'follow us on twitter' button.
任何人都可以给我参考写这样code或指导?
Can anybody give me reference or guidance of writing such code?
推荐答案
你可能要找的是<一个href="http://twitter4j.org/ja/javadoc/twitter4j/api/FriendshipMethods.html#createFriendship%28long%29"相对=nofollow> createFriendship()
您可以看到它是如何<一个href="http://$c$c.google.com/p/android-hackathon-in-fukuoka/source/browse/trunk/sodefuri/src/jp/jagfukuoka/sodefuri/TimeLineActivity.java?spec=svn167&r=167"相对=nofollow>这里使用
You can see how it is used here
这篇关于Android的,微博,“跟美国的”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!