Does anyone know how to get the background image of a button?
This does not work:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
I get:
java.lang.ClassCastException: android.graphics.drawable.StateListDrawable
I have tried StateListDrawable and although that works in the assignment, it is useless since I cannot extract the image.
I am trying to extract the button background for enabled and pressed states.
			
			This does not work:
			
				B4X:
			
		
		
		   Dim bmdPressed As BitmapDrawable
   bmdPressed = cmdNew.BackgroundI get:
java.lang.ClassCastException: android.graphics.drawable.StateListDrawable
I have tried StateListDrawable and although that works in the assignment, it is useless since I cannot extract the image.
I am trying to extract the button background for enabled and pressed states.
 
				 
 
		 
 
		 
 
		 
 
		 
 
		