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 <[email protected]> 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 [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 -- 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

