I want to make a ListView from the time that I get from a TimePicker' I succeed to add the time into a variable. but when I'm trying to add them into the ListView I don't get anything.
addArray = new ArrayList<String>();
ArrayAdapter<String> adapter = new ArrayAdapter(chart_houres_cosher.this,android.R.layout.simple_list_item_1,addArray);
ListView listView = (ListView) findViewById(R.id.leassons);
listView.setAdapter(adapter);
Clicked button
textView.setText( firstHouer + " : " + firstdMinute + " - " + seccoundHouer + " : " + seccoundMinute );
addArray.add(firstHouer + " : " + firstdMinute + " - " + seccoundHouer + " : " + seccoundMinute);
I can see the outcome on the TextView but not on the ListView.