8

Android: ListView Display

view full story
linux-howto

http://stackoverflow.com – I have a list View and I'm trying to put the data from a method unto a list view but it's not showing up on the android phone. I've trying almost everything. Please help me. This is the code for the list... int[] numbers = new int[5]; CardDataBase database = new CardDataBase(numbers); ListView list = (ListView)findViewById(R.id.listView1); List<String> view = database.getFrontSet(); ArrayAdapter < String > listAdapter = new ArrayAdapter < String >( MainActivity.this , android . R . layout . simple_list_item_1 , view ); list.setAdapter(listAdapter); The getFrontSet() (HowTos)