Why is the follow array assignment not working...
working part....
String[] values = new String[] { "Android","BlackBerry","HardCore"};
ArrayList<String> list = new ArrayList<String>();
for (int i = 0; i < values.length; ++i)
{
list.add(values[i]);
}
not working part...whit I add the following code to that onclick of a button the app crashes can anyone help...my ultimate goal is to get the text from a edittext view from the screen and place in into the list...however I and trying to do the following first
public void onClick(View view)
{
list.add(new String("testing"));
adapter.notifyDataSetChanged();
}