Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - DatePickerDialog - Old APIs

Tags:

I am trying to create a DatePickerDialog in my app in Android but when I create a DatePickerDialog I receive the following message: Call requires API level 24 (current min is 14): android.app.DatePickerDialog#DatePickerDialog

How can I use a DatePickerDialog in old API versions?

like image 743
GuiDupas Avatar asked Sep 22 '16 17:09

GuiDupas


1 Answers

Use one of the constructors added in API level 1, not one of those added in API level 24.

like image 192
laalto Avatar answered Sep 22 '22 17:09

laalto