hey mr Barx , i really appreciate that u make time for us even though ur very busy , but here some questions:
i have installed ur app and did some tests , i copied the code from ur app ("code to build...") for bigpicturetype
Nbuild.Initialize
Nbuild.SmallIcon = "icon"
Nbuild.OnGoingEvent = True
Nbuild.setActivity(Main)
Nbuild.Notify(1)
Nuild is notification builder
this code is written inside Service_Create and when my app starts it forces close with this error
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
** Service (bs) Create **
** Service (bs) Start **
java.lang.NoClassDefFoundError: android.support.v4.app.NotificationManagerCompat
at barxdroid.NotificationBuilder.NotificationBuilder.Notify(NotificationBuilder.java:512)
at a.mp.bs._service_start(bs.java:1184)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:175)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:159)
at a.mp.bs.handleStart(bs.java:68)
at a.mp.bs.onStartCommand(bs.java:53)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2531)
at android.app.ActivityThread.access$1900(ActivityThread.java:140)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1324)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4898)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
at dalvik.system.NativeStart.main(Native Method)
the android-support-4.jar is copied into libraries folder.
the second question is
i had already used the standard notification and using
Sub Service_Start (StartingIntent As Intent)
Service.StartForeground(1,n)
End Sub
im afraid if i used ur library my service wont be in the foreground , im sry im new notifications , and i appreciate ur passions , thank u.