【发布时间】:2011-11-07 10:29:57
【问题描述】:
我使用了 android 的共享内置对话框。 它获取所有获得 ACTION_SEND 意图的应用程序。 我的代码是
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT,
sharetext);
startActivity(Intent.createChooser(sharingIntent, "Share"));
我正在列表中获取所有应用程序,如蓝牙、gmail、facebook、消息传递、twitter、whatsapp
所有应用程序都收到我的消息,但不是 facebook。 我应该怎么做才能在 Facebook 应用程序中发送消息。它将如何检测我的消息。 任何帮助将不胜感激。 谢谢。
【问题讨论】:
-
Facebook 是否显示在选择器中?还是与 facebook 相关的问题没有考虑到您的 EXTRA_TEXT?
-
是的,Facebook 应用程序显示在选择器中。但没有收到从我的应用程序发送的消息。每当我得到完美的答案时,我都会接受答案。但不幸的是,我没有收到,我不接受虚假的答案。