webview

webview loaddata in android does not load a picture from img src

I use loadData method to load some html content into a webview, but when it encounters something like this : <a href="http://www.anywebsite.fr/"&gt;some text</a><img src="http://www.anotherwebsite.fr/thewantedpicture" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /> I only get this in t...

Android WebView seems to ignore "viewport" information on web pages

I have a website that is using the viewport META tag to tell mobile browsers how to display content ( ). Viewing the page in the Android browser looks correct (and iPhone, etc). When I load the page into a WebView component in an android Application, the WebView ignores the "VIEWPORT" tag, and renders the page at "full" resolution, wh...

<embed> in HTML loaded by Webview Broken in Sense UI

I have a WebView that loads HTML that contains an <embed>. When loading in stock android (G1, NexusOne, Ion, etc) it looks fine and can be clicked on to watch it in the YouTube app. But when loading it using either the HTC EVO or Incredible (both Sense UI phones ) the space where the content should be is completely blank. Try this cod...

Android Autolink to launch WebView

Hi, I'm using autoLink="web" attribute in TextView to launch Browser. However, I want to launch the myActivity with WebView, when I click the links in TextView. Is is possible that catch the click event and invoke startActivity? Thanks in advance, Jason ...

Problem with "Hello, WebView" example

Hi there, I'm new in android development and I am trying out the WebView example in the official android site. http://developer.android.com/guide/tutorials/views/hello-webview.html But I do everything they say...which is pretty simple: I create the project, edit the layout file, then i add the code, etc. No problems building...but wh...

WebView: how to preserve the user's zoom settings across sessions?

My app uses a WebView, and users sometimes adjust the zoom level to make the text larger. However the zoom level setting is lost when the Activity is closed and another one started. I can't see how to get and set the zoom level programatically on WebView, can anyone suggest a way this could be done? ...

Change the text color in webView

Is there a way to change the text color for entire webView? If it is could you provide me with some examples? ...

My Android HTML application is losing values stored in localStorage when it shuts down. Anyone else see this issue?

I have a native Android 2.1 application that hosts a web view. I load up a site that contains javascript that uses the LocalStorage feature. When the application is running localStorage works fine. When some users exit the application and restart it, all the values are gone. I'm not seeing this problem in my Motrola Droid or Sprint E...

How to enable WebKitDeveloperExtras on Android's WebView

If I write a native Android application that uses android.webkit.WebView, how do I enable WebKitDeveloperExtras for it? I would like to be able to enable real script debugging via Web Inspector, not just dumping to a console. ...

alert in embedded webview

When embedding WebView in an application and loading html-pages in it, JavaScripts alert() do not work.Give me an example pls ...

Load an SWF into a WebView

I'm having problems with this. If I go to an SWF directly in the browser, it works fine. If I attempt to use loadUrl on an SWF file it stays blank and loads nothing. ...

Loading package html + resources into webview

I would like to know how I can display a HTML page in webview with references to relative/local images. The goal is to have the html page and all linked images contained in the android application package itself. Where would I need to place the assets (assets directory?) and how do I reference these so they load into the webview? Than...

displaying web pages over web views in collection view using cocoa bindings

Hi all, I tried sample example given at this link - Collection View Programming Guide It is simple and it worked. Considering it as a reference I tried a simple application which will show a collection view of web views with some web page displayed over each web view. The model class has two properties: NSString *pageName, and NSURL *...

Display HttpResponse (string from Handler) in new WebView

I have the following code in a form's submit button onClickListener: String action, user, pwd, user_field, pwd_field; action = "theURL"; user_field = "id"; pwd_field = "pw"; user = "username"; pwd = "password!!"; List<NameValuePair> myList = new ArrayList<NameValuePair>(); myLis...

how do you load a file into a content provider to use the zoom functions???

I used the tutorial on this website but i dont really understand how to get the file that i wont to be loaded into it. Does anyone know what i have to do to get a file in my res folder to show up in the webview through the content provider or even another way to do it? http://www.techjini.com/blog/2009/01/10/android-tip-1-contentprovide...

Zoom out Problem on webview in Android 1.6?

Hi folks, In web view, the overview mode method does not works in Android 1.6. Because of the API Level restrictions. is there any possible to show the web view in zoomed out completely? Any Idea? WebSetting.Zoomdensity is available in API Level 7 only. ...

Android WebView not respecting scaling percentage...

I have a WebView which I'm trying to have scale to a certain percent on loading the page. The iPhone version of this software uses the HTML meta-tag: <meta name="viewport" content="width=320, initial-scale=0.95, maximum-scale=2.0, user-scalable=1"> Since Android's WebView doesn't seem to respect that tag I hard-coded the percent using...

How to disable the third zoom button in webview of Android ?

I want to disable the third button that creates a rectangle to zoom in other than +/- buttons in my WebView which uses builtin zoom controls. How can I do that ? I am able to do this for WebView without using built-in zoom controls by myWebview.getZoomControls().getTouchables().get(2).setVisibility(View.INVISIBLE); But how to do the ...

How would I use a button on my app to set the current URL that a WebView is showing?

I need help. The title says it all. Thanks so much! :) ...

Maintain cookie session in Android

Okay, I have an android application that has a form in it, two EditText, a spinner, and a login button. The user selects the service from the spinner, types in their user name and password, and clicks login. The data is sent via POST, a response is returned, it's handled, a new webview is launched, the html string generated from the resp...