Tag: webview

Android WebView Post Request with Custom Headers

I could see there are two separate methods in Android docs to post the data and add the headers. For setting Headers public void loadUrl (String url, Map<String, String> additionalHttpHeaders) For setting Post Data public void postUrl (String url, byte[] postData) But what I really required is to post the data along with headers. ( […]

Which is more secure: External browser or ChromeTab for authorization?

I am developing cordova based hybrid mobile apps targeted for android and iOS smartphones. Update: Embedded webview approach is no longer supported by Google Usecase: The application authenticate user and then would be accessing Google Calendar API’s, and finally display user events on the app. Note: I will be Using 3-legged OAuth and Google Data […]

How to access html content of AccessibilityNodeInfo of a WebView element using Accessibility Service in Android?

I’m trying to access the textual content of another app which is probably built using a non-native(js+html) based framework. Hence, I figured I’ll try to access the data from an accessibility node corresponding to a WebView element. However, I’m unable to grab textual/html data using the usual methods since methods like getText() work only if […]

Is there a way to disable the zoom feature on input fields in webview?

When a user clicks in an input field or textarea, the application zooms in. Is there a simple way to disable it? Currently have the meta tag: meta name=”viewport” content=”width=device-width; height=device-height; initial-scale=1.0; maximum-scale=1.0; user-scalable=no; target-densityDpi=device-dpi;” Everything looks great till I look at it on a device with Android 2.2 Specifically HTC Evo 4G.

Is default behavior of Android's WebView changed to open internally all links?

I noticed that with the last update of Google System WebView, all the links in my WebViews are opened in the view itself. But according to the documentation from google: public boolean shouldOverrideUrlLoading (WebView view, String url) Added in API level 1 Give the host application a chance to take over the control when a […]

Authorize user on Google website in WebView via dialog

For example, user is navigating to google.com in WebView. Is it possible to authorize him there via Google Account Picker (something like described here https://developers.google.com/android/guides/http-auth) to simplify authorization instead of manually logging in via web form? Android Web browsers (for example, Google Chrome) are authorizing user via this method).

Android 3.x ONLY WebView Text Selection + JavaScript

Problem domain: Android WebView based ePub format reader — We need text highlights which are accessible via JavaScript methods (ie turn em on, turn em off, save them email them, etc) Anyone in the know, please correct me if I’m wrong: During text selection on a WebView — Basically we are handed a TextView overlay […]

Screen blinking when using a webview with flash

Edit: I made a demo apk, so you can understand what I mean: http://cl.ly/3g0s1p030j243y0p3m2F For my application, I want a kind of “Super Power Point”, or a keynote (the commercial team will present the product to their customers) using all the Android goodness, gestures, etc… on an Android tablet. As Honeycomb is not yet ready […]

Is there a way to pass a message from an Android browser to an app?

I have a situation where I’d like for some data to be passed from a mobile web site to a native Android app. A complication is that, in the normal case, the native Android app might not be installed when the mobile web site is loaded. Here’s an example: I am a user of ExampleApp […]

How to Play local swf files in a webview

Am trying to play local .swf files (kept in asset or sdcard) inside webview. But am not getting any luck…Can anyone guide me the proper way??? I am able to play swf files via url….but getting difficulty in playing local file inside webview

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