在Android上的twitter和Facebook上分享文字/图像 [英] Share text/Image on twitter and facebook in android

查看:117
本文介绍了在Android上的twitter和Facebook上分享文字/图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了我的新闻应用程序,现在我必须添加共享(脸书/ Twitter)选项来分享图像和文本。我搜索很多但不清楚如何满足我的要求。实际上在分享按钮我必须显示edittext和按钮以及我们必须分享的任何共享点击应该共享的共享按钮。我已经通过SDK和意图也不是为我的要求工作

  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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆