webview

Android webkit.WebView and HTML5

Hi, is there any list which HTML5 features the WebView supports and which not? I am interested mainly in: 1) localStorage/sessionStorage 2) offline manifest 3) web sockets 4) web workers Prior there was lack of those features (http://www.mail-archive.com/[email protected]/msg60143.html), but in Android 2.1, first ...

WebView do not inform UIDelegate in modal NSWindow

I build a NSWindow with a WebView in it. The the WebView loads an HTML-Page with buttons calling the JacaScript-Functions "window.close()" and "window.open('URL')" by clicking on it. The WebView notice this and informs my UIDelegate by calling the selectors: - (WebView *)webView:(WebView *)sender createWebViewWithRequest:(NSURLRequest ...

WebView displays .pkg file instead of downloading it

Hi all I need some help here I have gone through the tutorial for WebView and I get it to load my url and it loads fine. I run a site that offers .pkg files to my users for download to there device. The issue is instead of downloading the .pkg file it just displays the raw code of the .pkg file in the webview. How can I get this to force...

Android: View.measure(int,int) always wants to be (0,0)

Hi guys, I have a WebView that I've added to a view group: webView = new WebView(context); addView(webView, ViewGroup.LayoutParams.WRAP_CONTENT); This lives in my viewgroup's constructor. Then on layout, I want to do this: webView.measure(View.MeasureSpec.makeMeasureSpec(getWidth(),View.MeasureSpec.EXACTLY), View....

Android: Intercept AJAX call from WebView

Hi all, I want a HTML/javascript application, running in a WebView, to make AJAX calls that are handled by the Java code. Ideal would be to just intercept the call (easy, just use shouldOverrideUrlLoading()) and 'return' some data. However, I don't find a way to 'return' a response to the WebView, other than calling a javascript functio...

load html at listview item onclick

Hi guys, I'm now stuck in html loading from my assets folder. I've several html pages under assets folder and have to load those at listview item onclick. Each listview item own their html pages.Does anybody know how i can get onclick event and how to show specific html pages ? Thanks ...

Android. WebView and loadData

It's possible to use following method for content's setting of a web-view loadData(String data, String mimeType, String encoding) How to handle the problem with unknown encoding of html data?! Is there a list of encodings?! I know from my college that in my case html comes from DB and is encoded with latin-1. I try to set encoding par...

WebView.getProgress() always returning 100

I am experiencing the same bug reported here (http://code.google.com/p/android/issues/detail?id=9597) Anyone know of a work around? I want to have a progress bar in a WebView like the Android Browser does while the page is loading. ...

Android - Loading an external .js file into a webview then accessing it's functions?

I have a JS file that has functions to search a document for substrings. I want to access functions inside this file by passing parameters to it (the search keyword). I know we can use .loadUrl("javascript:~~~~~) but I'm not clear on how to do it using multiple functions. Anyone who can point me in the right direction? Thanks! ...

Can't click on ListView whose rows are made of WebViews

Hi, I have an Activity which extends ListView The ListView that I use is an extension of ArrayAdapter and each row of the ListView primarily consists of a WebView The problem is that touching the WebView does not call OnListItemClick. Any thoughts on how I can be able to touch the webview and call OnListItemClick? Or is there something...

Crash during typing data in web view.

Hi all, In a sample application when I tried to enter data in a webview it crashed. Below is the part of crash report- Process: RCS [38246] Path: /Applications/RCS.app/Contents/MacOS/RCS Identifier: com.tprf.RCS Version: 1.5.10 build-0212 (1.5.10) Code Type: X86 (Native) Parent Process: launchd [152] ...

How to restore state after calling another activity ?

My android app is simple : a single activity contains a webview which shows user my website,in it I have a link which when user clicks on it ,the default sms program will be called. That all works well,but when I return from the sms ,It restarts the program(call the onCreate() method ) instead of returning to the origin state , how can ...

WebView how to force ContentHeight to update

I am using Load data as below, however getContentHeight never changes value. How can I force it to update. I have called this many times and the content height does not update till I manually click on the webVeiw. Any ideas? TIA private void UpdateMessageDisplay() { //loadData fires onPageFinished but without the new data brows...

Android browser/webview bug? Content-Disposition: attachment; filename="xyz.txt"

So an android browser or a webview works fine with urls like this - abc.com/xyz.txt However, if your URL looks like this - abc.com/xyz.php and what's sent to the browser in the headers is - Content-Disposition: attachment; filename="xyz.txt", then the Android browsers and web view seems to get terribly confused. It looks like it saves ...

gmail.com not working on webview (after login)

I have a webview in my app that generally works fine for loading websites. But I cannot get www.gmail.com to work: when I open www.gmail.com I see the login page, try to login, afterwards the screen goes black and my app/process is killed. I don't see much in my logcat, just some strange debug information is being dumped as below. But ...

Is it possible to program the WebView to automatically select all text?

In Android SDK, is it possible to program the WebView to automatically select the text, which is contained within itself? ...

[android]Setting WebViewClient to WebView doesn't work correctly

I am writing app, that should authorize on twitter. I load to WebView Link to my app's server, which redirects me to twitter authorization page. Before this, user is logged in on my app server with DefaultHttpClient. If i just writing webView.loadUrl(link); everythig works correctly, but if i'm adding webView.setWebViewClient(new WebVi...

using WebView to view map and set marker (pin) on android

Hello everyone. I'm making an app on android, using webview to load google map (using this url for my webview: http://gmaps-samples.googlecode.com/svn/trunk/articles-android-webmap/simple-android-map.html). but i can't put a marker on that webview, can't somebody tell me how? thanks very much (and sorry because my terrible English :)) ...

problem with height in WebView

Hello, I have the next xml layout file: <ViewFlipper android:id="@+id/details" android:layout_width="fill_parent" android:layout_height="fill_parent"> <!-- ListView que define la lista de noticias --> <ListView android:id="@+id/list" android:cacheColorHint="@android:color/transparent" android...

Android Webkit WebView extends Viewport

I have a website embedded in my Android application. It has a 478px wide div with some content in it. My phone is in landscape mode. Why is there a horizontal scrollbar? I can hide it, but i can still scroll to the right (which is empty space). I can see the entire 478px wide div without scrolling. There should not be any way to scroll...