The code is as below
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Intent i = getIntent();
ArrayLis
put this line after the super.onCreate(savedInstanceState);
setContentView(R.layout.company_list);
what is this ?
UrlList urlList;
urlList = XMLParser.urlList;
and what is it doing here?
String[] categoryNameStrings = urlList.getCategoryName().toArray(new String[0]);
Can you please post the error log?
Use setContentView(R.layout.company_list);
aftersuper.onCreate(savedInstanceState);
when getting error like this first need to ensure that have given correct xml file as
setContentView(R.layout.main)
and
listview id (i.e) findViewById(R.id.listview1);