The apps I have created on B4A and loaded to the Google Market have been reporting the above message on the start-up of my android devices.
The message is also showing on the android devices of others.
From what I have read on this forum and others this seems to be a frequent issue and seems due to the manner in which the program has stopped.
I have been using a combination of Activity.Finish and ExitApplication so the program totally closes and returns to the home screen on the android device.
Is this causing my issue?
When testing I have also pressed the "Home" button to close programs - can this also lead to this message?
I know "uninstall" will solve the problem but I would prefer it if this message didn't appear rather than having users uninstall my apps.
Is there any other reason why this message would appear.
I look forward to your comments - please write your replies in "easy to understand" terms.
They are many reasons why your app could generate this error message. Of course, you should better use Activity.Finish instead of ExitApplication as it lets the system stop and free the memory when it needs it.
But you could have some issues with your code when the system starts too. Have you checked your logs ? Have you thought to send you the crash report so you will be able to retrieve it inside your developer console and analyze it ?
I have now revisited these responses and tried removing all references to "ExitApplication" in one app and tested it.
I still get the same error message - namely: "Unfortunately [app name] has stopped". This is despite the app working fine on devices until the "stopped" message is delivered.
I have looked at the log file [zip file of pictures attached] - I can't see what error arises when the app actually stops. As expected there are many more posts listed after I have left the app. It appears the app stops in picture 6 where the log says "Force Stopping Package - app name - appid - user" then on the next line "Killing pro:...."
The log file does however show a number of lines where the same message is given -
"Invalid argument. Please make sure your kernel is compiled with file capabilities support enabled."
"Skipped XX frames: The application may be doing too much work on its main thread". I note Erel has previously said not to worry about this message if it is in Debug mode, however, I have received this on Release mode. Mostly after I have exited the program - so I don't think [although I could be wrong] this should be the issue.
I have asked google developer console to provide crash reports to me - but I have received no reports from when the app stops. It only really becomes a nuisance for those people who turn their devices off and back on again - and need to go through and click on OK for each app that has stopped.
To see if it is something else I have done I have just created a very basic app with a panel on the designer page and that is it. This app only loads the page with the panel. This app also reports "Unfortunately [app name] has stopped" after it is closed with the <home> button. So I must be missing something very basic. All I put on the IDE page was Activity.Loadlayout("Main").
If someone can highlight my errors and how to fix these errors it would be appreciated. Thanks