1

Setting Background Programmatically on Android 3. (setting Background)

view story
linux-howto

http://stackoverflow.com – This code is not found in Android 3. Any other style than this? powerButton.setBackground(getApplicationContext().getResources().getDrawable(R.drawable.lock)); The error is this.. java.lang.NoSuchMethodError: android.widget.Button.setBackground. (HowTos)