Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/210.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 如何定制共享意图?_Android_Android Intent_Share - Fatal编程技术网

Android 如何定制共享意图?

Android 如何定制共享意图?,android,android-intent,share,Android,Android Intent,Share,我的应用程序中已经集成了一个共享按钮,但我不想共享链接(我使用的是Webview),而是想共享一个自定义文本,例如“要获取更多信息,请从android商店PLAYSTORELINK下载APPNAME” 替换: shareIntent.putExtra(Intent.EXTRA_TEXT, mUri); 与: 假设“共享按钮”指的是ShareActionProvider或使用操作发送的其他东西意图,请将您的额外文本值调整为您想要的值。除此之外,我们不能不看到你的“共享按钮”代码就帮你。我已经用我

我的应用程序中已经集成了一个共享按钮,但我不想共享链接(我使用的是Webview),而是想共享一个自定义文本,例如“要获取更多信息,请从android商店PLAYSTORELINK下载APPNAME”

替换:

shareIntent.putExtra(Intent.EXTRA_TEXT, mUri);
与:


假设“共享按钮”指的是
ShareActionProvider
或使用
操作发送的其他东西
意图
,请将您的
额外文本
值调整为您想要的值。除此之外,我们不能不看到你的“共享按钮”代码就帮你。我已经用我的代码编辑了这篇文章!对不起
shareIntent.putExtra(Intent.EXTRA_TEXT, mUri);
shareIntent.putExtra(Intent.EXTRA_TEXT, "To get more facts download the APPNAME from the android store PLAYSTORELINK");