This is a real issue. I have this memory leak with orientation changes, as
explained in the stackoverflow page.
Following this page workaround which is to use a static AdView seems to
work, but it is still leaking the original Activity the static AdView is
constructed with
(this parameter):
mAdView = new AdView(this, AdSize.BANNER, ADMOB_PUBLISHER_ID);
Isn't there a better solution to avoid this huge memory leak ?
Changing orientation 10-20 times in my app is sufficient to trigger an
OutOfMemoryException on
bitmap creation, and at this point 33Mb of native memory is used (!!!),
there is none left.