I downloaded the Motorla AVD for the Milestone, as this was the
closest I could get to the Droid/Sholes. Unfortunately, the screen on
the emulator doesn't fade out, so I am unable to test if that is the
issue.

But I have looked over my logs, and it is always the sholes device
that is throwing the NPE. If I could find an appropriate place to
place a try / catch, that would be fine:

@Override
        public void onWindowFocusChanged(boolean hasFocus) {
               try {
                super.onWindowFocusChanged(hasFocus);
               } catch (NullPointerException npe) { }
        }

Maybe?

On Aug 25, 4:57 pm, GJTorikian <[email protected]> wrote:
> Hi Diane--
>
> I am seeing this primarily on Verizon Droids ("sholes") running 2.2 .
> Please let me know if you need more info.
>
> Thanks--
> Garen
>
> On Aug 21, 2:01 pm, Dianne Hackborn <[email protected]> wrote:
>
>
>
> > It would help if people say the device(s) and version(s) of the platform
> > they are seeing this on.
>
> > On Sat, Aug 21, 2010 at 3:32 AM, Jim <[email protected]> wrote:
> > > I am seeing this issue in the wild also.
>
> > > Jim
>
> > > On Aug 18, 10:56 am, Sharyu <[email protected]> wrote:
> > > > I also met this issue when launch a new activity to cover a webview.
> > > > Can anyone helps?
>
> > > > On 6月29日, 下午10时13分,GJTorikian<[email protected]> wrote:
>
> > > > > Howdy--
>
> > > > > 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:
>
> > > > > java.lang.NullPointerException
> > > > >         at
> > > android.webkit.WebView.onWindowFocusChanged(WebView.java:4177)
> > > > >         at 
> > > > > android.view.View.dispatchWindowFocusChanged(View.java:3788)
> > > > >         at
> > > android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:
> > > > > 658)
> > > > >         at
> > > android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:
> > > > > 662)
> > > > >         at
> > > android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:
> > > > > 662)
> > > > >         at
> > > android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:
> > > > > 662)
> > > > >         at
> > > android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:
> > > > > 662)
> > > > >         at android.view.ViewRoot.handleMessage(ViewRoot.java:1921)
> > > > >         at android.os.Handler.dispatchMessage(Handler.java:99)
> > > > >         at android.os.Looper.loop(Looper.java:123)
> > > > >         at android.app.ActivityThread.main(ActivityThread.java:4627)
> > > > >         at java.lang.reflect.Method.invokeNative(Native Method)
> > > > >         at java.lang.reflect.Method.invoke(Method.java:521)
> > > > >         at com.android.internal.os.ZygoteInit
> > > > > $MethodAndArgsCaller.run(ZygoteInit.java:868)
> > > > >         at 
> > > > > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
> > > > >         at dalvik.system.NativeStart.main(Native Method)
>
> > > > > 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?
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to [email protected]
> > > To unsubscribe from this group, send email to
> > > [email protected]<android-developers%2Bunsubs
> > >  [email protected]>
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Dianne Hackborn
> > Android framework engineer
> > [email protected]
>
> > Note: please don't send private questions to me, as I don't have time to
> > provide private support, and so won't reply to such e-mails.  All such
> > questions should be posted on public forums, where I and others can see and
> > answer them.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to