0
I’m developing an app android
Currently, when running the APP, it starts by reserving 36.62 MB of memory.
I would like it to start over 50.00 MB or, when it reaches its limit, add more memory.
Is there any way to define the initial memory of the main thread?
I know that when we declare a new Thread, we can allocate a stack size for it like:
//https://docs.oracle.com/javase/7/docs/api/java/lang/Thread.html
//long stackSize define o tamanho da stack . . .
Thread(ThreadGroup group, Runnable target, String name, long stackSize)
But in the main thread I don’t know how to do
Someone would know my way around?
By JVM’s default it’s slowly releasing memory, according to demand, and of course there’s a limit, for applications that use more memory can be set in the manifest to increase it according to the answer @Rogers Marques posted, vc can see more details of the memory consumption error at this link: https://stackoverflow.com/questions/21012006/android-outofmemoryerror
– Weslley Barbosa