我正在开发一个phongap构建应用程序。我需要我的应用程序出现在android浏览器的共享菜单中。我看过这个Make Android app listen to shared links,但我在phonegap-build上,我没有清单...有办法做到这一点吗?我还需要处理对应用程序的相对调用:)
谢谢大家
Tommaso
发布于 2013-05-31 06:34:11
我不知道phonegap是如何工作的,但是如果你有一个活动,那么你可以使用以下代码:
Intent sendIntent = new Intent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "A text to share");
sendIntent.setType("text/plain");
startActivity(Intent.createChooser(sendIntent, "Share via"));检查Android's documentation for sending content to other apps。
Here in method shareList (在第406行)您已经有了一个可用的示例。
https://stackoverflow.com/questions/16845503
复制相似问题