Tag: webview

How to force WebView to skip images?

Can someone advice me how to tune up Android WebView to skip images from remote server (without image placeholders)

webView with https loadUrl shows blank page

I used webview to visit https link. the page always show blank. i found the way to dill with it public class WebViewClient extends Object { public void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error) { handler.proceed(); } } That’s work fine. But i used API Android 2.1, the above method is belongs to Android 2.2. […]

WebView inside ViewPager or ScrollView – weird rendering bug on Android 3.0+

I have a ViewPager. Every page of the ViewPager is a ScrollView. The ScrollView contains a WebView and several other Views. On Android 2.3 and older everything works fine but on 3.0+ there’s a weird rendering issue: When scrolling left / right in the ViewPager, there is also a very subtle rendering issue (which is […]

android webview.loadUrl won't load another webpage

In my simple android app I programmatically load a webpage in the WebView. It initially starts with a default webpage, and the next one is loaded based upon the user inputs for the first one. The JavaScript pass information back into the Android side of things via a message. Everything works fine, except when the […]

Android Webview with Back Button, if else

Disregard. I was opening the wrong app that was installed. It works wonderfully. 🙂 I have the back button working correctly within my webview, but I was wondering something. How to make the webview go back until it cannot anymore, and instead of exiting the program, have it open up a dialog box asking if […]

ANDROID/WEBVIEW— Uncaught TypeError: Object has no method 'changeActivity' at file:

I am trying to use a webview with an input box, take the string, and pass it to a second activity. For some reason, the button is not doing anything and I get the error: Uncaught TypeError: Object [object Object] has no method ‘changeActivity’ at file:///android_asset/www/index.js:3 So my HTML says this: <input id=”name” value=”” />&nbsp;&nbsp;&nbsp; […]

How to show a WebView with Theme.Dialog style in Android

I declared a WebView activity in the manifest like this: <activity android:name=”.MyWebView” android:label=”@string/app_name” android:configChanges=”orientation|keyboardHidden” android:theme=”@android:style/Theme.Dialog”> </activity> The WebView looks like this: <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:orientation=”vertical” android:layout_width=”fill_parent” android:layout_height=”fill_parent” > <WebView android:id=”@+id/webview” android:layout_width=”fill_parent” android:layout_height=”fill_parent” /> </LinearLayout> When I start this activity within my main activity, only the title of the dialog, containing the apps name, […]

How to handle OAuth URL callbacks with Intent filters if authentication is done with webview?

I am developing an app which uses OAuth for authentication but I have a little problem handling OAuth callbacks. THE AUTHENTICATION My app has a webview as the login screen and I am given a url to load the auth form in my webview. Let’s say that the url is : https://myoauthhost.com/oauth/auth?response_type=code&client_id=XXXXXXX&redirect_uri=YYYYYYYY&scope=ZZZZZZZZZZ and in the […]

Android Webview: Is there a way to know what the previous URL is?

Is there a way to access the history so that I know what URL the user is visiting when they hit the back button (which calls WebView.goBack())?

ANDROID : Share session between Webview and httpclient

I have actually a logged session in my WebView. But I use also httpclient to send and get data from the web. I saw on the internet that it’s impossible to get the content of a WebView, so I needed to use my httpclient to get data from a webservice. The problem is that this […]

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