Hi Guys
I'm in need of some help as im having an intermittant issue with my apps. After much research I have identified the issue to be as follows...
My app uses variables within the starter service of the app for storing Slot versions and stakes amongst other things. These variables are populated at various places thoughout the app but if we take the slot version variable for instance this is populated from Service_Create.
On Android 14
Start the app normally and the app is fine. Use the back soft key to exit the app all is fine. Reopen the app - No Issue
Start the app normally, use the III softkey (Whatever you call it) it then shows the app and offers the option to close it. Close it and all is fine. UNTIL you try to go back into the app.
Note: This is not everytime but seems to be sort of 1 in 3.
When going back into the app, the app will fail as the variables stored in the Starter service are no longer available. For example you close the app with slot version = 1. When you close by the above method and reopen the the app that same variable returns slot version = 0. Even though in the Service_create it should repopulate it, if it were to run.
See the below image this is an example of what happens in the logs on Android 14
As I mentioned this does not happen every time, when it works on Android 14 you will see the following in logs....
Note : There is mention of the starter service running the create process. Where as when it fails there is no mention of it at all.
Android 13 : No issue I can open and close the app as many times as I wish by this method no errors are received, The following image is what you can expect to see in the logs...
I am currently using version 12.8 of b4a. I updated to this latest version after reading posts on the forum stating people were having issues with the starter service, and after @Erel put out a new version to resolve some issues with the use of the Starter service on Android 14 devices.
Is anyone able to advise is there something obvious that I am missing, or that I am doing wrong? Or is there still an issue with b4a and the starter service on Android 14 devices?
Thanks in advance for yous assistance
CAsh
I'm in need of some help as im having an intermittant issue with my apps. After much research I have identified the issue to be as follows...
My app uses variables within the starter service of the app for storing Slot versions and stakes amongst other things. These variables are populated at various places thoughout the app but if we take the slot version variable for instance this is populated from Service_Create.
On Android 14
Start the app normally and the app is fine. Use the back soft key to exit the app all is fine. Reopen the app - No Issue
Start the app normally, use the III softkey (Whatever you call it) it then shows the app and offers the option to close it. Close it and all is fine. UNTIL you try to go back into the app.
Note: This is not everytime but seems to be sort of 1 in 3.
When going back into the app, the app will fail as the variables stored in the Starter service are no longer available. For example you close the app with slot version = 1. When you close by the above method and reopen the the app that same variable returns slot version = 0. Even though in the Service_create it should repopulate it, if it were to run.
See the below image this is an example of what happens in the logs on Android 14
As I mentioned this does not happen every time, when it works on Android 14 you will see the following in logs....
Note : There is mention of the starter service running the create process. Where as when it fails there is no mention of it at all.
Android 13 : No issue I can open and close the app as many times as I wish by this method no errors are received, The following image is what you can expect to see in the logs...
I am currently using version 12.8 of b4a. I updated to this latest version after reading posts on the forum stating people were having issues with the starter service, and after @Erel put out a new version to resolve some issues with the use of the Starter service on Android 14 devices.
Is anyone able to advise is there something obvious that I am missing, or that I am doing wrong? Or is there still an issue with b4a and the starter service on Android 14 devices?
Thanks in advance for yous assistance
CAsh
Last edited: