OK - for the record ... I think I have fixed this based upon what was going
on in line 377 (testing here that service is alive and passing false back if
not).

Thing is ... I am still perplexed as to why onPrepareOptionsMenu is getting
called in the first place.  All that is occurring here is that the Activity
is coming back into the foreground.  The menu button does not appear to have
been called.

Jason

On Sun, Nov 1, 2009 at 11:25 AM, Jason Van Anden
<[email protected]>wrote:

> Mark,
>
> Doh?  How did I miss this?
>
> I was testing the state of an object within a service that had not yet been
> restarted (resurrected?) after dying.
>
> I think I was stuck on the onPrepareOptionsMenu part for some reason and
> did not look at #377.
>
> Thank so much for the second set of eyes!
> Jason
>
>
> On Sat, Oct 31, 2009 at 1:33 PM, Mark Murphy <[email protected]>wrote:
>
>> Jason Van Anden wrote:
>> > 10-31 14:12:03.667: ERROR/AndroidRuntime(7369): Uncaught handler: thread
>> > main exiting due to uncaught exception
>> >
>> > 10-31 14:12:04.077: ERROR/AndroidRuntime(7369):
>> > java.lang.NullPointerException
>> > 10-31 14:12:04.077: ERROR/AndroidRuntime(7369):     at
>> > com.bubblebeats.free.Peeps.onPrepareOptionsMenu(Peeps.java:377)
>>
>> So...what's on line 377 of Peeps.java?
>>
>> Personally, I'm hoping for a sugar-coated marshmallow confection, mostly
>> because Peeps are made by a local firm... ;-)
>>
>> --
>> Mark Murphy (a Commons Guy)
>> http://commonsware.com | http://twitter.com/commonsguy
>>
>> Android Development Wiki: http://wiki.andmob.org
>>
>> --
>> 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%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
>

-- 
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