Reputation: 349
I'm trying to implement a date picker into my android application however I cannot seem to find the DatePickerDialog interface.
public class DatePickerFragment extends DialogFragment implements DatePickerDialog.OnDateSetListener{
}
Following the instructions on this page - http://developer.android.com/guide/topics/ui/controls/pickers.html
I get the DatePickerDialog underlined in red with an error of DatePickerDialog cannot be resolved to a type
. Some sort of library or something I need to import? I'm pretty sure I have the support library setup as is.
Upvotes: 1
Views: 3231
Reputation: 11112
You need to add
import android.app.DatePickerDialog;
Upvotes: 3