Android :: WebView And LoadData ?
Oct 18, 2010
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 parameter to latin-1, to ISO-8859-1 / iso-8859-1, but still have problem with displaying of special signs like ä, ö, ü.
View 1 Replies
May 25, 2010
I use loadData method to load some html content into a webview, but when it encounters something like this. And if I'm not mistaken, this should also display the picture. Code...
View 1 Replies
View Related
Oct 17, 2010
I update the html in a webView using loadData() followed by a reload(). I get the new data to display but the scroll of the page has not updated.I want to keep the view of the page at the bottom. I can wait a long time and it still doesn't update.Once I click the webView the scroll bars adjust and I can drag to the bottom of the page and see the new text.Things I have tried:
- multiple settings and calls in onPageFinished(). None worked because the getContentHeight() hasn't changed yet.I have also tried to scrollTo(100 + getContentHeight) and that doesn't work.
- pageDown(true)
still no good, thinking i could simulate my click.adding a few br tags. This worked a bit, but the number of br's has to equal the number of lines of new text. Since the number of new lines is not something that can be exactly determined based on orientation and screen variables it's not a good fix.
View 1 Replies
View Related
Mar 21, 2010
I want to render one UTF-8 encoded string what is provided by a rss feed like that:
CODE:.........
it shows at the emulator <IMG Src='http://www.december.com/html/images/icon.gif' alt='logo'> like plain text , but it isn't rendered .... What I'm doing bad?
View 4 Replies
View Related
Nov 27, 2009
We have a webpage which include two different CSS: portrait.css and landscape.css. We want load this page only once and enable the right CSS according to phone's orientation. We have a plan to develop a chrome plugin by c++ to make it which got us to have to change firmware. I just wonder whether there is more elegant way to do it by Java.
View 2 Replies
View Related
Jun 15, 2010
I have a webview and I am using android:configChanges="orientation" to restrain the webview from reloading everytime the orientation changes.I also have two different folders layout-port and layout-land to define the layouts for different orientations.If I use android:configChanges="orientation" then the above two folders are ignored. Can I have both working at the same time?
View 6 Replies
View Related
Jan 10, 2010
I'm trying without success to shape a simple screen composed of a webview and a closebutton on the bottom. When i run it i see the button close at bottom but when the loadURL of the webview is done the webview takes all the screen size and hide the close button.
View 7 Replies
View Related
Apr 3, 2009
I am seeing an annoying bug in WebView on the G1.I have a WebView that displays an HTML page. When the user clicks on a link, the link's text is highlighted.At this point, I call WebView.clearView(), and then WebView.loadDataWithBaseURL() to load the URL that the user has just clicked on.When the new page finally shows, the WebView somehow still remembers the previous highlight area. If the user clicks on the WebView again, a "phantom highlight" at the old location will flash quickly.The phantom highlight also appears when the user moves the trackball.
View 2 Replies
View Related
Jul 14, 2009
Are there currently any plans to replace AbsoluteLayout in in WebView? I need to place native controls based on the coordinates of elements in the WebView. I'm currently using a separate View to manage the layer, but I'd prefer to override the layout in WebView.
View 2 Replies
View Related
Aug 28, 2010
I've created a web view app, the page that is displayed features market:// links but upon clicking them I get the 404 screen along with the error that the protocol is not supported. I've tried looking through documentation but was unable to find anything relating to this.
View 5 Replies
View Related
Sep 14, 2009
I have a WebView in my activity opening html file, containing a simple javascript. My problem is that the webview opens the html file, but doesn't execute the javascript. When i open the file from web browser, and not from my app, it executes the javascript correctly. What could be the difference? Are there any different settings for running javascript?
Here is my file:
CODE:.......
View 3 Replies
View Related
Jul 6, 2010
I have a webview and i have next previous buttons to get to the next or previous picture. What i want to do if possible is : Can i display the first picture but the webview loads (in the background the other pictures(other URLS) so that are available in the cache when a new picture is needed.
View 1 Replies
View Related
Feb 23, 2010
is it possible that a user clicks inside a webview on a link like <a href/> and then my activity is opened? I need this for sms, email, telephone and some specials. Lets say the user browses on the impressum and clicks on the phone number for support. I want the phone to call that number.Or lets say the browser clicks on an image (with a special href?), and I want the user to land on my picture-view-activity.
View 3 Replies
View Related
Mar 2, 2009
I am setting the font of a TextView to font from a ttf file like this: Typeface myTypeface = Typeface.create From Asset(getAssets (), "fonts/samplefont.ttf");TextView myTextView1 = (TextView) findViewById (R.id.welcome title); myTextView1.setTypeface(myTypeface);The font is stored in my assets directory. How can I set the font of a WebView to this font? Can I use webSettings.setStandardFontFamily?
View 2 Replies
View Related
Aug 1, 2010
I am trying to use a WebView in my Android application. I am creating my webview in code-side (not in XML). My problem is; when I call loadUrl method of webview, the webview goes fullscreen mode. How can I keep the size of the webview for example 200x200 pixels?
View 3 Replies
View Related
Apr 1, 2010
I have looked EVERYWHERE and my little brain just can't understand a better way to refresh an activity. Any suggestions that I can understand would be great.Code...
View 2 Replies
View Related
Jun 11, 2010
Below code not working in my system. Code...
View 8 Replies
View Related
May 11, 2009
I am trying to load a pdf file on a webview but it doesn't seem to work. i am wondering if pdf formate is supported for webview or not? If not then which file format would be suitable for ebook app contains images as well?
View 4 Replies
View Related
May 5, 2010
Well, I'm trying to follow the tutorial from http://rapidandroid.org/wiki/Graphing. But I found a problem just in the first part of it. I'll describe the problem here, I just cannot understand how this could be wrong, it's pretty simple stuff. What am I doing wrong here? First I created a xml file called statistics.xml, in it among other things I put this code...
The problem arises here, as I seem to be getting null for wv whenever I test for it. Which means of course that findViewById(R.id.webview) couldn't find the view. But again, what am I doing wrong? Of course I know I could also instantiate the webview directly from code without the need to specify it from the xml, but I was just wondering what was wrong about this way of doing it. Just in case I also added the following line in my android manifest file.
View 1 Replies
View Related
Jun 8, 2010
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.
View 1 Replies
View Related
Sep 20, 2009
I'm getting fairly regular crashes using WebView's in the underlying C code (sigsegv's). There isn't a _whole_ lot of rhyme or reason to it, but one thing that is somewhat suspicious is that I have more than one webview active (only one is one the screen at any one time, but if this has anything to do with my problem it may not matter since it appears that webkit widgets run asynchronously from the main UI thread).
Here's the stack dump. I've looked through the archives and it appears that there are other dumps, but it's really hard to tell from my vantagepoint whether they have anything to do with one another.
This is pretty easily reproducible (especially with one particular url of mine) so it should be relatively easy to track down.
CODE:.................
View 3 Replies
View Related
Mar 29, 2010
I have looked at a question similar to this here but as I am a newbie could someone explain how to get this to work in a WebView or at least how to set a 10 second time delay so people know that it's loading?
View 3 Replies
View Related
Jul 22, 2010
I've implemented a list with each item as a WebView. The WebViews are loaded in their own threads so the UI doesn't have to wait.
The problem I've ran into is after the list is loaded, some webview items disappears or repeat after the list is scrolled. I've read posts from Romain Guy and others about how this is a bad idea. Just wondering if it's still a bad idea or a solution has been found since Cupcake.
View 5 Replies
View Related
Jan 10, 2010
Does some please let me know how to use webview? I want to make a webview keep to work wthin in a layout without opening new web browser when clicking a link tag.
For instance, you can see the "Hello" text and google web page on a display. Then if you click the "help" or "news" or "settings" links, the android boots new web window and shows the web page.
I want to keep/fix the webview to open web page. I dont want to start android embedded web browser.
CODE:....................
View 3 Replies
View Related
Jun 29, 2010
I'm getting crash reports from my app out in the wild. Problem is, I don't know what's causing it. The only place I'm using WebKit is when constructing an -in-app help browser.
Here's the full stack trace:
CODE:..................
The help browser window takes the full screen, with a bar at the bottom for "help" and "done" buttons. The only way I can conceive of the help window losing focus is if someone clicks outside of the bar, or the screen dims. Will catching and throwing the NPE be sufficient for eliminating this error, or do I need to add some further metadata in the Android Manifest XML?
View 12 Replies
View Related
Aug 6, 2009
I have application which show information on WebView. I use javascript and link too etc. "<a href="#" onclick="prompt('" something "'); ">" My problem: when I click on link page scroll up. I don't wont it. I can that page stay on the same place.
View 3 Replies
View Related
Aug 9, 2009
I have created an application using webview however whenever I load it up in the emulator even with asking it to load google.com in my code it comes up:
Web page not available
And then says the web page at http://www.google.com may be down etc.
View 2 Replies
View Related
Jan 5, 2010
I am trying to open a URL using a webview. This URL redirects itself to another page. For some reason the redirect doesnot open up inside the webview. It just opens up into a new browser. Is there some setting in the webview control that can prevent this from happening?
View 3 Replies
View Related
May 19, 2010
I want to get the object from the webview how to do it ?
View 3 Replies
View Related
Oct 20, 2009
I can get the visual area value of a webview'size by using webview.getHeight() and webview.getWidth(). But how can I get the real value of a webview'size ? Am I said clear ?
View 3 Replies
View Related