Custom Notification Issue

walterf25

Expert
Licensed User
Longtime User
Hell all i need some help, i'm trying to use Barx's custom notification library 1.1, i've used it in the past in one of my apps, but the previous version was 1.0, this worked just fine, i just installed version 1.1 and now i can't get this to work.

I keep getting this error!

LogCat connected to: TA28705IOE
--------- beginning of /dev/log/main


** Activity (main) Create, isFirst = true **


** Activity (main) Resume **
startService: class anywheresoftware.b4a.samples.push.pushservice
** Service (pushservice) Create **
** Service (pushservice) Start **
** Service (pushservice) Start **
** Service (pushservice) Start **
New message arrived: Another test
** Activity (main) Pause, UserClosed = false **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Service (pushservice) Destroy **
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
startService: class anywheresoftware.b4a.samples.push.pushservice
** Service (pushservice) Create **
** Service (pushservice) Start **
** Service (pushservice) Start **
** Service (pushservice) Start **
New message arrived: Call me
android.app.RemoteServiceException: Bad notification posted from package anywheresoftware.b4a.samples.push: Couldn't expand RemoteViews for: StatusBarNotification(package=anywheresoftware.b4a.samples.push id=1 tag=null notification=Notification(vibrate=default,sound=default,defaults=0xffffffff,flags=0x0))


at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1081)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3806)
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:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
startService: class anywheresoftware.b4a.samples.push.pushservice
** Service (pushservice) Create **
** Service (pushservice) Start **
** Service (pushservice) Start **
** Service (pushservice) Start **
New message arrived: Call Main Hub now!
android.app.RemoteServiceException: Bad notification posted from package anywheresoftware.b4a.samples.push: Couldn't expand RemoteViews for: StatusBarNotification(package=anywheresoftware.b4a.samples.push id=1 tag=null notification=Notification(vibrate=default,sound=default,defaults=0xffffffff,flags=0x0))
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1081)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3806)
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:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
startService: class anywheresoftware.b4a.samples.push.pushservice
** Service (pushservice) Create **
** Service (pushservice) Start **
** Service (pushservice) Start **
** Service (pushservice) Start **
New message arrived: Callnow!
android.app.RemoteServiceException: Bad notification posted from package anywheresoftware.b4a.samples.push: Couldn't expand RemoteViews for: StatusBarNotification(package=anywheresoftware.b4a.samples.push id=1 tag=null notification=Notification(vibrate=default,sound=default,defaults=0xffffffff,flags=0x0))
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1081)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3806)
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:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
startService: class anywheresoftware.b4a.samples.push.pushservice
** Service (pushservice) Create **
** Service (pushservice) Start **
** Service (pushservice) Start **
** Service (pushservice) Start **
New message arrived: call now!
android.app.RemoteServiceException: Bad notification posted from package anywheresoftware.b4a.samples.push: Couldn't expand RemoteViews for: StatusBarNotification(package=anywheresoftware.b4a.samples.push id=1 tag=null notification=Notification(vibrate=default,sound=default,defaults=0xffffffff,flags=0x0))
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1081)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3806)
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:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
** Activity (main) Create, isFirst = true **


** Activity (main) Resume **
startService: class anywheresoftware.b4a.samples.push.pushservice
** Service (pushservice) Create **
** Service (pushservice) Start **
** Service (pushservice) Start **
** Service (pushservice) Start **
New message arrived: call office
android.app.RemoteServiceException: Bad notification posted from package anywheresoftware.b4a.samples.push: Couldn't expand RemoteViews for: StatusBarNotification(package=anywheresoftware.b4a.samples.push id=1 tag=null notification=Notification(vibrate=default,sound=default,defaults=0xffffffff,flags=0x10))
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1081)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3806)
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:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
startService: class anywheresoftware.b4a.samples.push.pushservice
** Service (pushservice) Create **
** Service (pushservice) Start **
** Service (pushservice) Start **
** Service (pushservice) Start **
New message arrived: call now!
android.app.RemoteServiceException: Bad notification posted from package anywheresoftware.b4a.samples.push: Couldn't expand RemoteViews for: StatusBarNotification(package=anywheresoftware.b4a.samples.push id=1 tag=null notification=Notification(vibrate=default,sound=default,defaults=0xffffffff,flags=0x10))
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1081)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3806)
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:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
startService: class anywheresoftware.b4a.samples.push.pushservice
** Service (pushservice) Create **
** Service (pushservice) Start **
** Service (pushservice) Start **
** Service (pushservice) Start **
New message arrived: Call now!
android.app.RemoteServiceException: Bad notification posted from package anywheresoftware.b4a.samples.push: Couldn't expand RemoteViews for: StatusBarNotification(package=anywheresoftware.b4a.samples.push id=1 tag=null notification=Notification(vibrate=default,sound=default,defaults=0xffffffff,flags=0x10))
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1081)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3806)
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:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
startService: class anywheresoftware.b4a.samples.push.pushservice
** Service (pushservice) Create **
** Service (pushservice) Start **
** Service (pushservice) Start **
** Service (pushservice) Start **
New message arrived: Call Now!
android.app.RemoteServiceException: Bad notification posted from package anywheresoftware.b4a.samples.push: Couldn't expand RemoteViews for: StatusBarNotification(package=anywheresoftware.b4a.samples.push id=1 tag=null notification=Notification(vibrate=default,sound=default,defaults=0xffffffff,flags=0x10))


at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1081)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3806)
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:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Activity (main) Pause, UserClosed = true **
** Activity (menu) Create, isFirst = true **
** Activity (menu) Resume **
** Activity (menu) Pause, UserClosed = true **
--------- beginning of /dev/log/system
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
startService: class anywheresoftware.b4a.samples.push.pushservice
** Service (pushservice) Create **
** Service (pushservice) Start **
** Service (pushservice) Start **
** Service (pushservice) Start **
New message arrived: call now!
android.app.RemoteServiceException: Bad notification posted from package anywheresoftware.b4a.samples.push: Couldn't expand RemoteViews for: StatusBarNotification(package=anywheresoftware.b4a.samples.push id=1 tag=null notification=Notification(vibrate=default,sound=default,defaults=0xffffffff,flags=0x10))
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1081)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3806)
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:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
startService: class anywheresoftware.b4a.samples.push.pushservice
** Service (pushservice) Create **
** Service (pushservice) Start **
** Service (pushservice) Start **
** Service (pushservice) Start **
New message arrived: Call now
android.app.RemoteServiceException: Bad notification posted from package anywheresoftware.b4a.samples.push: Couldn't expand RemoteViews for: StatusBarNotification(package=anywheresoftware.b4a.samples.push id=1 tag=null notification=Notification(vibrate=default,sound=default,defaults=0xffffffff,flags=0x10))
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1081)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3806)
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:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
startService: class anywheresoftware.b4a.samples.push.pushservice
** Service (pushservice) Create **
** Service (pushservice) Start **
** Service (pushservice) Start **
** Service (pushservice) Start **
** Service (pushservice) Start **
New message arrived: call now
android.app.RemoteServiceException: Bad notification posted from package anywheresoftware.b4a.samples.push: Couldn't expand RemoteViews for: StatusBarNotification(package=anywheresoftware.b4a.samples.push id=1 tag=null notification=Notification(vibrate=default,sound=default,defaults=0xffffffff,flags=0x10))
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1081)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3806)


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:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)

I have added the res folder with all the layouts and have set them to read only, but i still keep getting this error, I have also cleaned my project and no luck.

I asked this question before but i remember i solved it by just cleaning the project, this time it won't work, i have cleaned the project a dozen times and it won't make a difference, I also have my target android sdk set to 15, any help will be appreciated, i have gone over and over and can't figure out what i'm doing wrong!

thanks all!

:BangHead::BangHead::BangHead::BangHead:
 

Francisco Rodrigues

New Member
Licensed User
Longtime User
I am with the same problem, any help?

android.app.RemoteServiceException: Bad notification posted from package anywheresoftware.b4a.samples.push: Couldn't expand RemoteViews for: StatusBarNotification(pkg=anywheresoftware.b4a.samples.push user=UserHandle{0} id=1 tag=null score=0: Notification(pri=0 icon=7f020000 contentView=anywheresoftware.b4a.samples.push/0x0 vibrate=default sound=default defaults=0xffffffff flags=0x10 when=1398382787931 ledARGB=0x0 contentIntent=Y deleteIntent=N contentTitle=N contentText=N tickerText=Default Notification Sample kind=[null]))
 
Upvote 0
Top