Hi all,
I've got a brief question for you, something is driving me crazy and
couldn't find anything after checking Android Devs Reference.
I'm using a webView to load a simple html site that has a javascript
file.
It's all well displayed on the app but the content also has links that
I would like to silence (users should not be able to click and get any
other sites within the application itself).
I'm sure there must be a way (Android 1.5 -- API 3) right?
Thanks for your time guys.
public class WebViewTESTActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
WebView myWebView = (WebView) findViewById(R.id.webview);
myWebView.setWebViewClient(new WebViewClient());
WebSettings webSettings = myWebView.getSettings();
webSettings.setJavaScriptEnabled(true);
webSettings.setJavaScriptCanOpenWindowsAutomatically(false);
myWebView.loadUrl("http://ai.soyalternativo.com/BA.html");
}
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en