Okay, thanks for the explanation.

I believe this error only comes from calling Service.startForeground() with
a bad notification.  Look for wherever you use that method and make sure the
notifications you build are always correct.

Have you tried running on the 2.3.3 emulator?

On Sun, Apr 17, 2011 at 3:41 AM, A.TNG <tang.j...@gmail.com> wrote:

> Thanks Dianne for your kind reply.
>
> I'm really sorry for making some misunderstanding. "com.xxx.xxx" just a
> sample package name. It's not exist in the real world. But thanks for your
> "BTW", you're a nice person.
>
> The puzzle I cannot figure out is that in my application, I never send
> Notifications as the crash information described. I also check all related
> component in framework (which my application may use). It seems they also
> don't send notifications. So, that make me don't know how to fix it.
>
> On Sat, Apr 16, 2011 at 4:26 PM, Dianne Hackborn <hack...@android.com>wrote:
>
>> As it says, you are trying to post a notification that is invalid.  This
>> particular error happens when the notification you give to
>> Service.startForeground() is invalid.
>>
>> (Btw, I really really hope you aren't using "com.xxx.xxx" as your app
>> package name.)
>>
>> On Sat, Apr 16, 2011 at 12:37 AM, A.TNG <tang.j...@gmail.com> wrote:
>>
>>> Hi Guys,
>>>
>>> I developed a application and put it on Android Market. This application
>>> support Android API from level 7 to level 10. It works prefectly on Android
>>> 2.1 and 2.2. Recently, it seems many user start to use Android 2.3.3. I
>>> start to get a strange crash as following:
>>>
>>> android.app.RemoteServiceException: Bad notification posted from package
>>> com.xxx.xxx: Couldn't expand RemoteViews for:
>>> StatusBarNotification(package=com.xxx.xxx id=0 tag=null
>>> notification=Notification(vibrate=null,sound=null,defaults=0x0,flags=0x2))
>>>     at
>>> android.app.ActivityThread$H.handleMessage(ActivityThread.java:1044)
>>>     at android.os.Handler.dispatchMessage(Handler.java:99)
>>>     at android.os.Looper.loop(Looper.java:123)
>>>     at android.app.ActivityThread.main(ActivityThread.java:3691)
>>>     at java.lang.reflect.Method.invokeNative(Native Method)
>>>     at java.lang.reflect.Method.invoke(Method.java:507)
>>>     at
>>> com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:841)
>>>     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
>>>     at dalvik.system.NativeStart.main(Native Method)
>>>
>>> I cannot reproduct this crash on my HTC G7 with Android 2.3.3. Also, I've
>>> searched all my source code. I find nothing about send notification with
>>> flag ON_GOING (flags=0x2). This kind of crash information is full of my
>>> backend crash report system. I really worry about it.
>>>
>>> Have anyone met this problem?  If you have any clue about it, please
>>> share with me. Thanks a lot.
>>>
>>> --
>>> Regards,
>>> Jiyu
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to android-developers@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> android-developers+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>
>>
>>
>>
>> --
>> Dianne Hackborn
>> Android framework engineer
>> hack...@android.com
>>
>> 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.
>>
>>
>
>
> --
> Regards,
> Jiyu
>



-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to