开发者

How i should integrate twitter in my app?

开发者 https://www.devze.com 2023-02-12 17:33 出处:网络
I want to integrate twitter in my android app. I have used twitter4j,jtwitter but i think i might went wrong somewhere.

I want to integrate twitter in my android app.

I have used twitter4j,jtwitter but i think i might went wrong somewhere.

If anyone is having the samp开发者_StackOverflow社区le demo created by them then plz upload it.

thnx 4 any help....


I think the best way to implement it will be to use intent. http://labs.emich.be/2010/01/23/how-to-send-to-twitter-or-facebook-from-your-android-application/ which will work if you have installed the twitter client on you phone but you wont bother with login, auth etc.


You can do something like this to add a share functionality to your app.

 final Intent intent = new Intent(Intent.ACTION_SEND);
 intent.putExtra(Intent.EXTRA_TEXT, "something to share");
 startActivity(Intent.createChooser(intent, "Share"));

This will create a chooser so the user can select any Activity that can handle the Intent.ACTION_SEND intent. This includes the sms app, gmail, facebook, twitter, etc.


You can easily integrate Twitter in your android application .

  1. I have use this sample for Twitter integration in android application.
  2. This sample contains all the steps required to integrate Twitter in android application
0

精彩评论

暂无评论...
验证码 换一张
取 消