所以我有一個textView,有時我的textView包含鏈接,目前當我點擊這個鏈接時,打開一個下載的瀏覽器列表的意圖打開。現在我想要的是,我想打開當前應用程序內的這個鏈接,在WebView中說。我怎樣才能做到這一點?處理android TextView的鏈接點擊
我們有同一主題的多篇文章/問題,但我不知道這篇文章/問題是真的。
這樣一個https://gist.github.com/ksoichiro/3394338給了我一個ClassCastException異常 android.text.style.URLSpan cannot be cast to pb.myPackage.LinkUtils$SensibleUrlSpan
或這一個handle textview link click in my android app
是有任何直接簡單的方法來實現這一目標?請告訴我。
引用此回答 [在WebView中打開URL默認瀏覽器](http://stackoverflow.com/questions/22962621/open-url-in-webview-instead-of-default-browser) – sajan