So I'm very new to Java and I'm using webview in my android app to show my responsive site page. I realize I should develop a dedicated app but I'm just not that good yet.
That being said, when someone uses a link in my site, it tries to open a browser window on their phone and I would rather it keep them in the app. Here is my current webview configuration. I've tried a few solutions I've read here but none of them seem to work (likely due to my limited knowledge).
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
String url ="http://dirtywasted.com/";
WebView view=(WebView) this.findViewById(R.id.webView);
view.getSettings().setJavaScriptEnabled(true);
view.loadUrl(url);
}
What should I add to this to keep links clicked inside the app?