android - How to destory the Admob adView completely and get the memory back? -


my app has activity , service. introduce admob in app.

however, found incredibly consuming memory (5mb), , can't memory after destroy it.

i use in layout.xml

 <com.google.ads.adview      android:id="@+id/adview"     android:layout_width="fill_parent"     android:layout_height="wrap_content"     ads:adunitid="xxxxxx"     ads:adsize="banner"> 

enable admob in oncreate

adview adview = (adview)this.findviewbyid(r.id.adview); adview.loadad(new com.google.ads.adrequest()); 

destory on onpause or ondestory

adview adview = (adview)this.findviewbyid(r.id.adview); adview.destroydrawingcache(); adview.destroy(); 

after destroy it, still can't 5mb memory back. can pls?

p.s. service running on background , see 5mb still there.

thanks.

just guess maybe try calling stoploading() before calling destroy().


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -