I am having trouble with creating a datepicker in samsung note 2 device with lollipop 5.0. The exception is:
java.util.IllegalFormatConversionException: %d c
Forget about the built-in date picker. There's only one way to get rid of the crash: use a library that provides an independent implementation.
For a date picker fragment: https://github.com/flavienlaurent/datetimepicker
For a date picker widget: https://github.com/SingleCycleKing/CustomTimePicker (this is more a starting point than a ready-to-use-solution)