Thanks a lot for this info.
">Then you probably have a leak. :) You can use hat to determine what
is
>holding on to the object. "
This was exactly the whole point of my question. Irrespective of the
activity launched and the process it attaches itself to, the number of
Views and Activities always increase in an arithmetic progression.
My app was not doing anything special here apart from what the
template HelloWorld app on eclipse does (I just changed the name).
Also, the heap usage statistics show that there has been no memory
leak.
The steps are simple enough:
> Launch the app
> Take a device state dump
> Note down the Views and Activities number of the app
> Close the app
> Take a device state dump
> Note down the Views and Activities number of the app
> Repeat the above steps
It can be seen that the number of Views and Activities keep growing as
explained earlier.
Why is this so? Is the dump giving the total number of Views and
activities? If not, surely caching these things might be a problem?
Can you please clarify?
Regards,
Anirudh