Tag: webview

Remove focus overlay-color of webview

I have a WebView that loads a site, once I press some of my elements of that site, the WebView places some kind of blue overlay over the pressed element. Is there anyway to remove this behaviour? Thanks in advance!

How to get Webview iframe link to launch the browser?

I’m using a WebView to display a page in which the html includes an iframe where src=”xxxxx.php”. This iframe loads as an ad image with an underlying link. If I click on that image (link), it tries to load the new page within original iframe (which doesn’t show much in that little space). What I […]

how to get the current page url from the web view in android

Using webview.loadUrl(url) method I open an url. If I click any Button on the view it directs to another page. Now I want to get the url of the directed page. how can I get it? I also want the content that is displayed on the webview. How to get the content of the WebView […]

How to make a full screen webview

How to make the webview of an android application full screen. I have added the webview on a layout xml file but it doesn’t stretches out till the edges of the layout, there is some type of margin along all the side of the webview. I am also adding an image to give you guys […]

Disable Double Tap Zoom/Unzoom on a webview

On Android, I’m am using a webview to display a chart designed by the API flot. I’m using this code: super.onCreate(savedInstanceState); this.requestWindowFeature(Window.FEATURE_NO_TITLE); this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN); setContentView(R.layout.graphique); // Get a reference to the declared WebView holder WebView webview = (WebView) this.findViewById(R.id.webView1); // Get the settings WebSettings webSettings = webview.getSettings(); // Enable Javascript for interaction webSettings.setJavaScriptEnabled(true); // Make […]

load somefile.html file from internal storage to a webview of an app

I have a file in the internal storage of my tablet. /myfolder/subfolder/index.html. How can i load this into a webview of an app. i have tried webview.loadURL(“file:///myfolder/subfolder/index.html”); but it is not giving the expected result. it says web page not available. I know how to load from the asset folder or from the web/internet. but […]

WebView + WebChromeClient method onCreateWindow not called for target=“_blank”

I’m trying to develop a custom browser with WebView using Android API level 10 (sdk 2.3.3), unfortunately I don’t know how to intercept request from the webpageto open URL in new browser window, like taps on links with target=”_blank”. In conformity with the API Doc I have overridden the onCreateWindow of WebChromeClient, but is not […]

ViewPager with WebView allowing swiping and disallowing scrolling of WebView

I am using ViewPager and WebViewto present HTML contents as an eBook. On some pages of the ViewPager I am allowing the TouchEvent to be handled by the WebView and on some pages I am letting the ViewPager handle the TouchEvent by itself by overriding the onInterceptTouchEvent method in the ViewPager(some pages are having TextViews […]

String Encoding problem in Webview

I am getting the response from web service shown below <html><head> <style type=”text/css”> body{ color: #FFFFFF; background-color: #000000; } </style> </head> <body><center><div> Ricardo Viana Vargas  09-14 Ricardo Viana Vargas é especialista em  gerenciamento de projetos, portfólio e riscos. Foi, nos últimos 15 anos, responsável por mais de 80 projetos de grande porte em diversos […]

Android WebView setCertificate issues SSL problems

I have seen a lot of posts and information about SSL errors and I have stumbled upon one myself. I am trying to access a web page through Android WebView with a GlobalSign CA BE certificate, and I get a not-trusted error. For most phones, it works fine to handle this, and just tell the […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.