Android :: NPE On WebView OnWindowFocusChanged
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
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
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
May 2, 2009
I show articles in WebView and would like to add some additional information, e.g. publishing date, author etc., into the same ScrollView above the original content. So that it usually doesn't take up space, but the user can just scroll back when the information is needed.
Did any of you do something like that in a sane way?
I thought I can put my stuff into the same ScrollView that WebView uses, but when looking at it with hierarchyviewer I can't see any children, it's probably native.
View 4 Replies
View Related
Feb 23, 2009
I've been desperately trying to get favicons from web pages loaded in a WebView, even for pages that have a <link rel="icon"/>
Things I've tried :
CODE:.......
I looked at the Browser source code and couldn't find anything else other than the above. I have the feeling I'm missing something obvious...
what is the exact purpose of WebIconDatabase? Is it a special cache for favicons? How is it supposed to be used?
View 2 Replies
View Related
Apr 2, 2009
Does anybody know how can I sort out a problem with the WebView.pageDown( boolean ) method that simple does not remains in the bottom of the web view after invoking loadData() ? The behavior in the emulator moves to the bottom and right after that moves back to the top.
View 5 Replies
View Related