The code is as below
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Intent i = getIntent(); ArrayLis
when getting error like this first need to ensure that have given correct xml file as
setContentView(R.layout.main) and
setContentView(R.layout.main)
listview id (i.e) findViewById(R.id.listview1);