-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