I'm trying to put together an Android view that has several elements stacked on top of one another. Some of these elements need to have HTML formatting applied, and I plan to stack enough of them that they will run off the screen, requiring a ScrollView. As an example, I would expect the layout to look something like this:
<ScrollView>
...
Hi All,
I want to execute a JavaScript code automatically after loading a website through WebView of BlackBerry.
I'm using OS 5 for that. But can't find a way out.
Thanks in advance.
...
I would like to allow redirects to happen naturally in the WebView and only catch a new url if it is a happening because a user clicked something.
...
Hello,
Need some help/direction with this. In my Android game I am loading websites in WebView by calling webViewRowA.loadUrl(www.website.com) and after some time (random) the device crashes with the following traceback.
java.lang.NullPointerException
at android.webkit.BrowserFrame.getRequestInterceptor(BrowserFrame.java:1108)
at andro...
How do you disable all touch events in an Android WebView (or scrolling in particular)? I would like the activity to handle all touch events.
...
Hello,
I'm trying to load/reference images from the app's assets folder from within a HTML page in a WebView. Unlike in most of the examples the HTML page itself is not located in the assets folder but is loaded from a server via http. The background of this question are some performance improvements which should reduce the loading time...
I have a WebView that is loading a URL that plays a Flash file. This works in the regular Android Browser, or if I use an Intent. For some reason it won't load in my WebView. It tells me I need to download Flash Player, even though it has already been installed:
public void setupWebView(){
webView = (WebView) findViewById(R.id.W...
My WebView doesn't fill the entire width of my phone. I am telling to fill_parent. Not sure why?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="horizonta...
We have a website that makes use of OAM for single sign on (form-based authentication). When we submit credentials to WebGate / Access Server the authorization succeeds, however after the authentication is performed, the form action (as configured in the Authentication Scheme - with passthrough:no) returns a server error instead of redir...
After browsing quite a bit, I still can't figure this out. I've added a HTML page and its images directory into my project Resources group in Xcode (Copied them over).
When I try to load the webview with the following code, the text is displayed fine, but the images aren't loaded.
NSString *path = [[[NSBundle mainBundle] resourcePath] ...
Is it a good idea to put a WebView into each item of a ListView on Android?
Or should I just use the TextView with Spannd?
I tried the Html.fromHtml() with ImageGetter to get the Spanned, but it does lots of parsing works for you and hard to customize it. And also it's different from what you see on a WebView.
Any idea would be helpful...
I want change the default font of webview to a custom font. I'm using webview in developing an bilingual browser app for Android.
I tried getting an instance of custom typeface by placing my custom font in assets. But still couldn't set webview's default font to my font.
This is what I tried:
Typeface font = Typeface.createFromAsset(g...
For Example, http://imgur.com
In the stock browser on an android phone you can press the "Browse" button on imgur.com and navigate to a photo you wish to upload. This works great in the browser. Is there something I should set to true to allow this in a webview?
...
I have a .swf file and i want to open it into webview and also wanna play flash games loaded there in webview. how to do that? please suggest me..
...
Hi All,
I have tried the following to fit the webpage based on the device screen size.
mWebview.setInitialScale(30);
and then set the metadata viewport
<meta name="viewport" content="width=320, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />"
<meta name="viewport" content="width=device-width; initial-scal...
I am trying to view a web page, fron an Android app, that requires authentication and get the following message:
----- Android webView error start --------
"You do not have permission to view this directory or page using the credentials that you supplied because your Web browser is sending WWW.Authenticate header field that the Web se...
I'm using a WebView to open some files saved to the app. Is there a way to link to the app's directory where files saved at runtime would be, in a similar way that file:///android_asset/ does? By link I mean loadUrl( *path* ) and also in the HTML markup of the file being opened <img src="*path*" />
As oppose to using an absolute path ...
Hi,
I am planning to display images from SD card in a webview in order to take advantage of he built in zoom capabilities of webview. However, I am facing an issue with displaying images that are bigger than screen size (e.g. 1800x1200) to fit the screen initially, like in an ImageView. I want the image to be displayed in full at first a...
Hello all,
I am quite new to Android yet, and I have an application that has a webview on it.
I need to know when the webview finishes loading a page that has a random number of redirects (sometimes to the same page, and the order of the redirects also change), so I can remove the Splash Screen only when there is a fully loaded page.
...
I am wondering what the best way to render a tournament draw (scrollable) might be for android. Since I am new to this, I was not sure whether to invest time creating a ListView sort of thing or dynamically building html pages and rendering them with WebView. Or I could plop everything into a regular scrollable text view, perhaps.
The ...