android-webview

how to run local web application in android webview

Hi, can anybody tell how to run the local webapplication using android webview I want to run my own webpages in android using web view Thanks ...

Downloading files via a webView

Hi, I am currently implementing a webview that uses the default behavior of opening the browser. When the page loads in the browser and I click the download link that is on the page that was loaded, the download starts, and quickly fails. I guess its an unsupported file type. How would I go about setting the WebView so that I may handle ...

How do I pause Flash content in an Android WebView when my activity isn't visible?

Hi All, I am experimenting with using a WebView to display Flash content inside my activity. Everything is working pretty well, but when the user hits the home key to put the activity into the background, the Flash content keeps running (sound keeps playing, etc) I have noticed that both the stock Android browser and Dolphin Browser see...

Android: How to split Picture captured from webview in multiple images

Hi! I have a webview and I capture the view like this Picture picture = m_browser.capturePicture(); Bitmap b = Bitmap.createBitmap( picture.getWidth(), picture.getHeight(), Bitmap.Config.ARGB_8888); Canvas c = new Canvas( b ); picture.draw( c ); FileOutputStream fos = null; try { fos = ...

Progress Dialog causing Virtual Keyboard to not show on WebView

Hello guys, I have a weirb bug that is pissing me off. I have an app that is pretty much only a webview with some extra functionalities, one of them is a Custom Loading Dialog (Extended from the progress dialog) that I show on the onPageStarted call, and dismiss on the onPageFinished call. The problem is, if I do that (show the dialog), ...

Can we set web view height and width in android

Hi Friends, can we set webview height and width in static for android? Thanks all ...

webview loadurl cannot load webpage from localhost web application?

Hi, I came across an interesting issue when testing android 2.2. My testing was to use webview api, webview.loadUrl(url); if url is from any public domain, ex, www.google.com, the web content is rendered very well. (url="http://www.google.com") if url is from local host, ex, tomcat with port 8080, the web content is rendered as well....

howto handle mailto: in android webview

I am trying to intercept mailto: links in an embedded webview in my app. What I have is working ok, except when the user presses the link it is blurred upon returning to the app. Here is what I am doing in my WebViewClient @Override public boolean shouldOverrideUrlLoading(WebView view, String url) { if(url.startsWith("mailto:"...

how to show the html contents to the webview using android

Following is my html content which i want to show in the webview using android sdk. It will displays only //Please but when i put this html content into the browser then it shows differently. <br /><br />Read the handouts please for tomorrow.<br /><br /><!--homework help homework help help with homework homework assignments elementa...

Android WebView SSL 'Security Warning'

I'm building a test version of an app for a client. Part of this app uses a WebView that calls out to a SSL-based site. In turn, the client has provided a test domain where the certificate name does not match the FQDN. Alas, they are not in a position to provision a cert that matches. :( I'm working around this issue on the companion iO...

Android 2.2 webview search problem

I have a webview in my activity. Now when I use WebView.findAll() method to search text in webview it is not highlighting the matching words. It works fine in Android 1.6 but is not working in 2.2. ...

Android WebView stopped unexpectly after loading an url

Hello, i have a big problem and i did not find a solution for my problem. I try to load an url and i use this tutorial: http://developer.android.com/reference/android/webkit/WebView.html My Code: public class HomeView extends Activity { WebView mWebView; public void onCreate(Bundle savedInstanceState) { try { supe...

zoom control in webview.

how can i prevent zoom controls in webview from disappearing after zooming in or out. and these zoom controls always show up after sliding the webview i.e. zoom controls do not show up autmatically as soon as webview loads up. i have tried this code. webview = (WebView)findViewById(R.id.webview); //getWindow().requestFeature(W...

When Getting GPS Location, load another URL..

Hello :) I have a little problem... I have made an Android application which extends the webview. The webview Html page with a map on like this: Map example, it was also here I got my inspiration. My onCreate method looks like this: super.onCreate(savedInstanceState); //Removes the title bar in the application reques...

Removing the Window titlebar after adding content [Android]

Hello :) The question is quite simple "How do I remove the titlebar from a WebView, after adding content ? Normally you use requestWindowFeature(Window.FEATURE_NO_TITLE); But you can only use that method before adding content :( So any ideas ? :) Thanks ...

Can you load flash into a webview being loaded by an android app

I am testing this on a Droid X with Android 2.2 and flash. Flash works great in the default android browser, but the webview does not seem to load it, even when linking to an external web hosted html file. ...

Android WebView: Large local image not loaded/shown

I'm trying to display a large (~> 1000x1000) image in a WebView. The image is in the assets folder. The problem is the image doesn't get loaded, instead I see the small blue square with a question mark (presumably meaning the image could not be loaded). I made a copy of the image and resized it to ~500x500. I'm loading both the origi...

Android Webview Font Size Change

How can you manually change the font size of a webview? e.g. When the page loads up in the webview the font size is like 24pt. and way too large for my android's screen. I've looked into the "websettings" but it seems that the two are not related. Thanks ...

Android 1.6 SDK WebView Issue

I've narrowed down the problem to WebView; my application force closes every time. If I take out the WebView and put in a color change button or something, the case switching works and the application loads. I'm fairly new to the plaform, but I'm (mostly) copying directly from examples here for WebViews. Application.java package com....

How to fix Android WebView crash due to pending MotionEvent

My Android app is experiencing this crash randomly during operation, and I think it is due to a pending MotionEvent that is dispatched to a null object, but not sure. here is the crash output: java.lang.NullPointerException at android.webkit.BrowserFrame.getRequestInterceptor(BrowserFrame.java:1108) at android.webkit.FrameLoader.handle...