在Android上的twitter和Facebook上分享文字/图像 [英] Share text/Image on twitter and facebook in android
问题描述
String twitterUri =http://m.twitter.com/?status=;
String marketUri =TESTING;
意图shareOnTwitterIntent =新意图(Intent.ACTION_VIEW,
Uri.parse(twitterUri + marketUri));
startActivity(shareOnTwitterIntent);.
妳可以从以下链接获取帮助图像上传
Android facebook SDK,使用不同语言的个人资料将照片上传到墙上
需要上传它在twitpic ...因为你必须使用jar文件..因为你不能tweet图片在twitter。
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);.
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.
这篇关于在Android上的twitter和Facebook上分享文字/图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!