Facebook的Android的意图 [英] Facebook Android Intent
本文介绍了Facebook的Android的意图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有这种意图的一个问题。这个意图supose发送消息的文本类型。一切正常的电子邮件,短信,Twitter和无论是在手机上。但唯一一个有一个问题是Facebook的,它会尝试发布为纽带,而不是文字。
意图S =新意图(android.content.Intent.ACTION_SEND);
s.setType(text / plain的);
s.putExtra(Intent.EXTRA_SUBJECT,报价);
s.putExtra(Intent.EXTRA_TEXT,qoute);
startActivity(Intent.createChooser(S,报价));
解决方案
这是在Facebook应用程序存在缺陷。请抱怨该应用程序的作者,希望他们会解决自己的问题。
i have a problem with this intent. this intent is supose to send a text type of message. everything works email,sms,twitter and whatever is on the phone. but the only one that has a problem is facebook, it will try to post as a link and not a text.
Intent s = new Intent(android.content.Intent.ACTION_SEND);
s.setType("text/plain");
s.putExtra(Intent.EXTRA_SUBJECT, "Quote");
s.putExtra(Intent.EXTRA_TEXT, qoute);
startActivity(Intent.createChooser(s, "Quote"));
解决方案
This is a flaw in the Facebook application. Please complain to the authors of that application, and hopefully they will fix their bug.
这篇关于Facebook的Android的意图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文