Hi. I have an App that much probably is rather heavy to manage for Android. This App uses OpenGL2, reads and displays huge bitmaps and drawings over them. A very serious tools, which is rather successfully even with high level users. Clearly, when we have big data, we cannot manage them, with the miserable 500 mb allowed to B4A (while the tablet may have 8+8 Gb memory ). As a matter of fact the App displays a memory problem and this is out of question. But it happens, randomly, that the App "vanishes", even with data that, in other moments but same conditiona, were normally managed. Now a first question: (1) The App "vanishing" without any message in debug or release mode (btw I work with USB cable connected) is a symptom of Android unquestionable decision to kill the App or what else? It seems not a programming error, otherwise it should appear anyway. Then some other questions. I am struggling to try to optimize the code, still hoping to minimize this "vanishing" problem, but I don't know some details, related to B4A memory management. For example: (2) I always clear lists and similar stuff, not waiting GarbageCollector. Is this a good practice or it may generate the abovementioned problem, or it is irrelevant? (3) Using classes to encapsulate some parts of code may give any benefit to App behaviour (4) Making a lib of some parts of code may give benefits?
Note: Probably I am fighting against WindMills. Android has its good reasons for what it does, but equipping devices stimulating people to work on them, to arbitrarily kill their Apps, when they try to be serious tools.. is not that fair. Maybe I am simply paranoic and surely frustrated, forgive me and my ignorance. Thanks for any advice.
Note: Probably I am fighting against WindMills. Android has its good reasons for what it does, but equipping devices stimulating people to work on them, to arbitrarily kill their Apps, when they try to be serious tools.. is not that fair. Maybe I am simply paranoic and surely frustrated, forgive me and my ignorance. Thanks for any advice.
Last edited: