Android : getting NullPointerException for ImageView imag = (ImageView) findViewById(R.id.image)
I am getting Null Pointer Exception for ImageView imag = (ImageView) findViewById(R.id.image). I have custome layout declared in R.layout.screen3 with custome list declared in R.layout.custom_row_screen3 . Each row has few tasks and depending on their status an image is shown to right of each row. Please guide me in getting this resolved as I am new to android. here is my code below ::: public class screen3 extends ListActivity{ final ArrayList<HashMap<String, String>> list = new ArrayList<HashMap<String, String>>(); ... ... ... TextView tv; ImageView imag; @Override public void onCreate