Working on an Android app and I am getting back a one line response from a website similar to "Item 1", "Item 2", "Item 3" I need to convert the one line into a list to use in the array adapter for the simplelistitem. Any help would be appreciated, thanks. Here is the code.
try {
BufferedReader reader = new BufferedReader(new InputStreamReader(webs,"iso-8859-1"),8);
String[] names = new String[] {reader.readLine()};
webs.close();
setListAdapter (new ArrayAdapter<String>(this,android.R.layout.simple_list_item_1, names));
} catch(Exception e) {
Log.e("Log_tag", "Error converting results"+e.toString());
}