自定义用于共享意图的URL

时间:2016-08-04 10:16:23

标签: android facebook android-intent twitter

我很清楚如何与Android共享Intent分享链接...

这就是我通常做的事情:

final String extraText = "String 1";
final String searchUrl = "http://www.example.com?utm_source=SOURCE&utm_medium=social&utm_campaign=socialbuttons&utm_content=app_android";
final Intent intent = new Intent(Intent.ACTION_SEND).setType("text/plain").putExtra(Intent.EXTRA_SUBJECT, "TITLE").putExtra(Intent.EXTRA_TEXT, extraText + "\n" + searchUrl);

BUT 我想在网址中自定义跟踪不同类型的股票......

Twitter的:

http://www.example.com?utm_source=TWITTER&utm_medium=social&utm_campaign=socialbuttons&utm_content=app_android

Facebook的:

http://www.example.com?utm_source=FACEBOOK&utm_medium=social&utm_campaign=socialbuttons&utm_content=app_android

等等...

有可能吗?我该怎么办?

0 个答案:

没有答案