I have a problem, I\'m trying to get my apps background to change, each ten seconds, based on a timer... I have done what i could and cant work it out as im a beginner to ja
layout.setBackgroundDrawable(getDrawable(images[index++])); protected Drawable getDrawable(int i) { // TODO Auto-generated method stub return null; }
This is the problem, you are setting null to the background.return some valid drawable and it will work.