Guest -Vy- Posted April 17, 2011 Report Posted April 17, 2011 (edited) I know this is the liquid sections but this is a place full of devs that can help me... and at modaco there isnt a section for developing app. And... at last... i own a Liquid and i follow you since May 2010. Here original post that i spread in internet's forum without response ATM Hi, im developing my first android app and i need a little help to resolve memory leak bug. In my activity i have a "Container" LinearLayout in wich i inflate after user input an xml View.inflate(TabItems.this, R.layout.item, m_LayoutContainer); This xml can get different background based on some user events. Button uiObj = (Button) findViewById(R.id.inflate_item); if(something) uiObj.setBackgroundResource(.R.drawable.bg_one); else if(other) uiObj.setBackgroundResource(.R.drawable.bg_two); else etc etc After some reading around to avoid memoryleak i implement a list where put all my view that have background so at activity destroy i can do: myViewFromList.getBackground().setCallback(null); myViewFromList.setBackgroundDrawable(null); but memory leak are still there... Tnx in advance and sorry for my bad coding(atm first app and im still learning) and bad english :) Edited April 17, 2011 by -Vy-
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now