Android Question old kiosk mode and b4a 8.30

akinnovation

Member
Licensed User
Longtime User
I have compiled an old project that use the kiosk mode (android <5.0).
When I start the app I have this error:

----Activ_res----
** Service (kioskservice) Start **
** Activity (main) Pause, UserClosed = false **
*** Service (kioskservice) Create ***
kioskservice_service_create (java line: 182)
java.lang.RuntimeException: Cannot change properties after call to SetInfo. Initialize the notification again.

of course with the 7.80 compiler all work fine.

Where is my error ?

Many thx
marco
 

DonManfred

Expert
Licensed User
Longtime User
  • Notification object rewritten to work with targetSdkVersion 26. In most cases you don't need to change anything. Notification.SetInfo or Notification.SetInfo2 should be the last calls before you show the notification.

  • Notification.SetInfo / SetInfo2 accept CharSequences so it can work with CSBuilder.
 
Upvote 0
Top