Hi,
how can I know when is it safe to initialize an object in code multiple times without causing a memory leak (for example to read battery charge)?
Also, it seems that it is possibe to initialize an object in sub_globals as well as in any other place in the code. Is there any difference (for better or worse) between the two methods?
I'm a long time user of basic4android but I've never seem to get a clear view on these matters...
how can I know when is it safe to initialize an object in code multiple times without causing a memory leak (for example to read battery charge)?
Also, it seems that it is possibe to initialize an object in sub_globals as well as in any other place in the code. Is there any difference (for better or worse) between the two methods?
I'm a long time user of basic4android but I've never seem to get a clear view on these matters...