[Solved] Java.NullPointerException Android [closed]


you have passed the same resource id

listView = (ListView) findViewById(R.id.productlistview);
View header = (View)getLayoutInflater().inflate(R.layout.productlistview, null);

change this to

listView = (ListView) findViewById(id1,null);//id1 for second xml specified
View header = (View)getLayoutInflater().inflate(id2, null);//id2 for first xml specified

1

solved Java.NullPointerException Android [closed]