1

I want to implement an in app browser so that all links in my app will open in the in-app browser ( same as Facebook app handle links).

I have created new activity that takes a Url and open it , but i don't how to initiate it when a link inside a TextView is clicked (I have also spannable text inside the textView that handles Hashtagging).

thanks.

Naseem
  • 11
  • 2
  • I have made an app which opens a link. You can find the code here : https://github.com/akritikts/BioYantra/blob/master/app/src/main/java/in/silive/bioyantra/MainActivity.java – Akriti Jul 25 '17 at 11:17
  • check this: https://stackoverflow.com/questions/13542982/android-webview-stay-in-app – Hamid Reza Jul 25 '17 at 11:26
  • thanks, but i want that all links will open in a separate activity, and i don't have WebView in the MainActivity that is why it is not clear how to do so. – Naseem Jul 25 '17 at 12:18

1 Answers1

1

You can use this library. This library does what you intend to do.

https://github.com/TheFinestArtist/FinestWebView-Android

Abhinash
  • 368
  • 2
  • 13