let’s have activity A and button in that activity, which opens activity A again. Stack looks like after couple clicks like:
A – A – A – A – … – A
My questins go towards memory allocation. When I start x – times activity A, would it be allocated in memory like 7 * (memory allocation of activity A) or some smaller number? What is a limit, one application can allocate in RAM?
Thanks
Max default heap size allowed for an application is 48MB in 3.0. But mostly depends on the device vendor.
EDIT: Don’t know how to get it in adb shell. You can see the default heap size in the avd manager. Create avd for each version of android and check the value. To get it in application you can use this api