Diego Marcelo Croatto Member Licensed User Longtime User Nov 13, 2018 #1 Hi... its possible that Kiosk example dont work in Android 6.0.1?... i purchased the latest version of B4A but still not working....Thanks In android 5 the example works ok..... The next error is in KioskService Error occurred on line: 19 (KioskService) java.lang.RuntimeException: Cannot change properties after call to SetInfo. Initialize the notification again. at anywheresoftware.b4a.objects.NotificationWrapper.getND(NotificationWrapper.java:92) at anywheresoftware.b4a.objects.NotificationWrapper.setValue(NotificationWrapper.java:124) at anywheresoftware.b4a.objects.NotificationWrapper.setSound(NotificationWrapper.java:109) at anywheresoftware.b4a.kiosk.kioskservice._service_create(kioskservice.java:215) at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:733) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:352) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255) at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144) at anywheresoftware.b4a.BA.raiseEvent(BA.java:171) at anywheresoftware.b4a.kiosk.kioskservice.onCreate(kioskservice.java:56) at android.app.ActivityThread.handleCreateService(ActivityThread.java:2877) at android.app.ActivityThread.-wrap4(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1427) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5418) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636) ** Service (kioskservice) Start **
Hi... its possible that Kiosk example dont work in Android 6.0.1?... i purchased the latest version of B4A but still not working....Thanks In android 5 the example works ok..... The next error is in KioskService Error occurred on line: 19 (KioskService) java.lang.RuntimeException: Cannot change properties after call to SetInfo. Initialize the notification again. at anywheresoftware.b4a.objects.NotificationWrapper.getND(NotificationWrapper.java:92) at anywheresoftware.b4a.objects.NotificationWrapper.setValue(NotificationWrapper.java:124) at anywheresoftware.b4a.objects.NotificationWrapper.setSound(NotificationWrapper.java:109) at anywheresoftware.b4a.kiosk.kioskservice._service_create(kioskservice.java:215) at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:733) at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:352) at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255) at java.lang.reflect.Method.invoke(Native Method) at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144) at anywheresoftware.b4a.BA.raiseEvent(BA.java:171) at anywheresoftware.b4a.kiosk.kioskservice.onCreate(kioskservice.java:56) at android.app.ActivityThread.handleCreateService(ActivityThread.java:2877) at android.app.ActivityThread.-wrap4(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1427) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5418) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:746) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:636) ** Service (kioskservice) Start **
DonManfred Expert Licensed User Longtime User Nov 13, 2018 #2 Diego Marcelo Croatto said: Error occurred on line: 19 (KioskService) java.lang.RuntimeException: Cannot change properties after call to SetInfo. Initialize the notification again. Click to expand... it is not relevant for kiosk-mode. You are not using the Notification object correctly based on the Error.... See also https://www.b4x.com/android/forum/threads/b4a-v8-0-has-been-released.90828/#content Last edited: Nov 13, 2018 Upvote 0
Diego Marcelo Croatto said: Error occurred on line: 19 (KioskService) java.lang.RuntimeException: Cannot change properties after call to SetInfo. Initialize the notification again. Click to expand... it is not relevant for kiosk-mode. You are not using the Notification object correctly based on the Error.... See also https://www.b4x.com/android/forum/threads/b4a-v8-0-has-been-released.90828/#content
Erel B4X founder Staff member Licensed User Longtime User Nov 14, 2018 #3 A real kiosk solution: Device Owner / TaskLock / Kiosk apps 2017 About the notification error, make sure to call Notification.SetInfo or SetInfo2 after setting all other properties. Upvote 0
A real kiosk solution: Device Owner / TaskLock / Kiosk apps 2017 About the notification error, make sure to call Notification.SetInfo or SetInfo2 after setting all other properties.
Diego Marcelo Croatto Member Licensed User Longtime User Nov 15, 2018 #4 Thanks Erel... solve it Upvote 0