Q:

Android: Insert immage button dynamically through code

i want to insert an image to do a button.  But i want insert it through the code, no with the .xml file.  There is someone that have any idea? 

A:

Try This:  
ImageButton ib = new ImageButton(this);
yourContainer.addView(ib);//here yourContainer is ParentLayout

