Tag: webview

CookieSyncManager is now deprecated, what can I use instead?

I’m using a cookie in my app which works fine in all browsers, but in android device the cookie is not setting as fast as I wanted, it takes some time until cookie is saved, same is happening when I delete the cookie. Is there anything I can do to make it work better? Thank […]

Destroy webview in Android

Fail To Destroy WebView Firstly, a lot of example i had been tried for destroy the webview in Android. For example: Memory Leak in Android Although i was destroying webview in the onDestroy() and declared a webview programmatically, but the memory leak problem also will be occurred in my Android device. Below is my coding.. […]

Logic to use multiple webview in TabLayout to handle memory issue

I have almost 30 webview in a Tablayout. Everything works fine but my app consumes a lot of memory and will just close because of memory issue. This is what I get in log 04-05 21:00:09.458 19720-19801/com.example.choman.webview A/chromium: [FATAL:memory.cc(19)] Out of memory. size=16777216 This is my java file. Basically all the remaining 29 fragments contain […]

Open url in webview – phonegap

I would like to know how can I open an url in the app context of embed webview. Currently this demo will open a new tab in external browser, so, not what I am expected. I am using google.com just for testing. Summary, I am looking for a functional demo. <?xml version=”1.0″ encoding=”UTF-8″?> <!– config.xml […]

Is it possible to get data from HTML forms into android while using webView?

I’m making a very simple form in HTML which is viewed in android using the webview which takes in your name using a textbox and when you click on the button, it displays it into a paragraph and it’s made using both html and javascript. This is my html code: <!DOCTYPE html> <html> <body> <p> […]

Is there a better webview for Android

Is there a better webview for android? Google’s own documents mention not to rely on the webview object. But for using webkit it seems strange that it is so limited, compared to other webkit browsers used on mobile devices with comparable hardware. This is evident in jquery mobile implementations, or similarly sencha touch implementations for […]

Loading Cache when Offline in Android Webview

I have an application which loads urls from a website. Now I want that the application to use the cache when offline. But I just get the failure page which says that im not connected to the website. At first I set the Cachemode to Load_Normal but this doesn’t help. Next I tried a realy […]

Android: loading WebView output into App Widget

Whilst I appreciate that an App Widget does not support a WebView directly, is it at all possible to use an ImageView (which is supported), and a technique like described here to generate the image for the ImageView? The WebView wouldn’t be used directly, but only used in the background in order to provide the […]

android – get Text out of webview

In my application, I am showing epub HTML files in webview using EPUBLIB. My problem is that I want to use bookmark functionality for my epub reader. For that I want to fetch text from webview which is showing page from my epub’s HTML file and then use that text in my bookmark activity to […]

WebView.loadUrl(url, headers) not working in android

I am setting the cookie in headers and call WebView.loadUrl() with this header but it(Cookie in header) will not work on any android device except 4.4. I have test it on android versions 4.2, 4.3, 4.4, 5.0 and 5.1. webView = (WebView) findViewById(R.id.web_view); webView.getSettings().setJavaScriptEnabled(true); webView.getSettings().setDomStorageEnabled(true); webView.getSettings().setBuiltInZoomControls(true); webView.getSettings().setDisplayZoomControls(false); HashMap <String, String> extraHeaders = new HashMap<String, String>(); […]

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