-1
在我的Android应用程序,我想使用意向共享一个链接到我的网站,但我不希望它是可见的其他用户如何共享一个链接,是不可见的用户
例子,我想分享“ smoe网站链接“
但是对于用户,它应该看起来像”点击我看到它“。
我试过,但wasnt全成它只是显示简单的文本,是不可点击
<string name="app_link"><a href="My website link">Click me!</a></string>
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra("PostID", postID);
intent.putExtra("UserID", userID);
intent.putExtra(android.content.Intent.EXTRA_TEXT,activity.getString(R.string.app_link);
activity.startActivity(Intent.createChooser(intent, "Share"));
任何帮助将非常感激。
可能的重复[如何使TextView中的链接可点击?](http://stackoverflow.com/questions/2734270/how-do-i-make-links-in-a-textview-clickable)。 [这](http://stackoverflow.com/a/2746708/1306419)上述问题的答案可能是你在找什么。 –
我知道如何在我的应用程序中使文本视图可点击,但是我想要的是当我通过whatsapp和任何其他应用程序共享文本时,我想隐藏链接并显示简单文本 – Android