I have developed my news app and now i have to add share(facebook/twitter)option to share image and text.I have searched lot but not clear how to fulfill my requirement.Actually on share button i have to display edittext and button and whatever we have to share on clicking on share button that should be shared.I have gone through SDK and intent also but not working for my requirement`
String twitterUri = "http://m.twitter.com/?status=";
String marketUri = "TESTING ";
Intent shareOnTwitterIntent = new Intent(Intent.ACTION_VIEW,
Uri.parse(twitterUri + marketUri));
startActivity(shareOnTwitterIntent);.
You can share image and test on twitter by using twitter4j-core-3.0.2.jar twitter4j-media-support-3.0.2.jar library. example
Reference link :
1) http://www.londatiga.net/it/how-to-send-image-to-twitpic-from-android/
2) http://www.rqna.net/qna/wupzh-android-image-sharing-on-twitter-using-sdk.html
Hey you can get help from the below link for facebook image uploading
Android facebook SDK, upload pictures to wall with profile in different language?
and for Twitter you need to upload it in twitpic... for that you have to use jar file.. as you can't tweet picture in twitter.