I have a problem with the WebView implemented in my application, having the web links must be open in the app browser.
I am using the following code for Webview layout:
<WebView
android:id="@+id/webadd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center"
android:layout_weight="1"/>
and the java code:
String url="http://www.google.co.in"
webadd=(WebView)findViewById(R.id.webadd);
webadd.getSettings().setJavaScriptEnabled(true) ;
webadd.loadUrl(url);
Here the problem is that
the URL is getting loaded in the Phone default browser skipping the app browser instead of getting loaded into app browser.
How to resolve this problem with the links/ sample code.
You means that you want to load the same URL in WebView residing within the Application, if this is the case then create a class by extending
WebViewClient.