Hi all, I'm attempting to write my first android app and am having a little problem with filling a List Layout from a DB.
The project itself is here: http://code.google.com/p/biofuelsfinder/ However the specific code I'm having the problem with is here: public void fillData(String fueltype){ ArrayList<String> items = new ArrayList<String>(); Cursor retailers = biofuelsDB.getRetailers("b5"); /*while(!retailers.isAfterLast()){ retailers.moveToNext(); try{ items.add(retailers.getString(retailers.getColumnIndex("name"))); } catch(IllegalStateException e){ String msg = e.getMessage(); } //items.add(user.lastName); //items.add(user.country); }*/ items.add("Blah1"); items.add("Blah2"); items.add("Blah3"); ArrayAdapter<String> adapter = new ArrayAdapter<String>(this, R.layout.retailers_row, items); /*setListAdapter(adapter);*/ } The two portions commented out, if run cause and illegalStateException error which then aborts the code. If anyone could have a look and let me know what I'm going wrong that would be most appreciated. Thanks. -- James Purser Collaborynth http://collaborynth.com.au Mob: +61 406 576 553 Skype: purserj1977 Twitter: http://twitter.com/purserj -- You received this message because you are subscribed to the Google Groups "Android Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en

