Matching SDK version to code? NPE Bug in WebView?

by Mariano Kamp » Sun, 15 Mar 2009 18:49:47 GMT

Sponsored Links

   I wrote an app that, among other things,  renders feed articles  
using WebView. Now I get error reports that seem to originate in  

-- NewsRob Version: 1.7.0/170
-- Android Version: sdk=2, release=1.1, inc=128600
-- Thread State: RUNNABLE
-- Stacktrace:
at android.webkit.CacheManager$

   I've got another report with the same content, but a different  
incremental version of the sdk (126986). Probably one from the US and  
one from the UK.

   So now I would love to know why the code blows up and if there is  
anything I can do about it. And with the source files and line numbers  
I felt in good shape to so. If only I could match them to the public  
code repositories ;-(

   Finding the file was easy: ;a=tree;f=core/java/android/webkit;h=a133d1c04dede353611f23bc37d04a9ff7316b8d;hb=HEAD

   But then "history" returns the following: ;a=history;f=core/java/android/webkit/;h=d12940d04f41e3f4450da79738714a6a8c7739e6;hb=HEAD
2008-12-18      The Android Open...     Code drop from //branches/ 
2008-10-21      The Android Open...     Initial Contribution android-1.0        

   None of these seem to simply match the version information returned  
by Build.VERSION.

   Furthermore none of these seem to match the line no from the  
stracktrace. It says method "run" in In both  
versions line 391 is not in a run method ;-(

   So, how to match stacktraces to code?



Other Threads

1. Theme.Translucent.NoTitleBar.Fullscreen and fullscreen?

When I try to use the Theme.Translucent.NoTitleBar.Fullscreen theme
through xml (or code), I do not actually get a fullscreen experience.
an activity with Theme.Translucent.NoTitleBar.Fullscreen specified as
the theme.  The content will properly get a fullscreen amount of room
to work with, but the status bar (with signal, battery, time, etc)
will still be there, obscuring whatever may be at the very top of the
view set for my activity. I tested this both on 2.1 (emulator/device)
and 2.2 (emulator), with and without an application theme.

I have also tried setting the window flags in the onCreate of the new
Activity to force full screen, but have not been able to get the
status bar to go away.

When I change the theme to simply Theme.NoTitleBar.Fullscreen, the
status bar will animate away as the UI transitions to the activity,
but then I cannot seem to make the activity translucent.

My questions are:
Is Theme.Translucent.NoTitleBar.Fullscreen supposed to hide the status
Alternately is there a way to recreate the translucency that
Theme.Translucent.* provides, allowing me to use a theme that works in
fullscreen and add the translucency manually?

Thanks much,


2. How to access and change settings for the phone and email accounts

What is the "internet Database of the device" ?

Try TelephonyManager maybe?

I doubt this is possible, especially since the user can have multiple email

Sure - just use the email apps.

TreKing - Chicago transit tracking app for Android-powered devices


3. ! WTA//鈩igh importance

4. better keyboard nga berfungsi

5. Google apps-for-android code samples

6. How to create a file outside the application?

7. Why do I get "XmlPullParserException: attr value delimiter missing!" when use XmlPullParser to parse page in Android