I am trying to analyze the memory usage of the
adb shell dumpsys meminfo <package name>
Does that mean GC claims the memory of the activity objects slowly?
Activity by pressing the back button does not mean its instance will be immediately killed and the memory
onDestroy() method is not a "finalizer". One can meet the case when by the time of starting a new
Activity instance the "old" one still resides in memory (as a reference).
If it is a leak I don't expect the activity count to go down to zero.
If you see the app's process running it's not a leak as "the activity count goes down to zero" (by the reason described above).
After I hit adb dumpsys for a couple of times the activity count goes down to zero. Is this normal?
Yes, with respect to above said.