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 .
- I have use this sample for Twitter integration in android application.
- This sample contains all the steps required to integrate Twitter in android application
精彩评论