I am new so forgive my primitive question, I am really not getting this. I am simply creating this array on my main activity while doing a tutorial and I get an error
package com.TaskReminder;
import android.R.string;
import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
public class ReminderListActivity extends ListActivity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.reminder_list);
string[] items = new string[]{"aa","bb"};
ArrayAdapter<string> adapter = new ArrayAdapter<string>(this,R.layout.reminder_row,R.id.text1,items);
setListAdapter(adapter);
}
and the error on my string array is :
Multiple markers at this line - Line breakpoint:ReminderListActivity [line: 14] - onCreate(Bundle)
- Type mismatch: cannot convert from String to R.string
what's exactly happening here?