Search code examples
android-datepickerandroid-timepickerandroid-things

Android Things : DatePickerDialog and TimePickerDialog not shown


I try to show DatePickerDialog and TimePickerDialog in Android Things app but instead of dialogs, i obtain black screen. (When i tap on this black screen, i go back to the calling activity)

I can see the following message in Android Monitor :

I/Choreographer: Skipped 45 frames! The application may be doing too much work on its main thread.
(Number of frames varies)

Did somebody encounter this problem ? Are DatePickerDialog and TimePickerDialog supported on Android Things ? What am i doing wrong or missing ?

(I use Android Things 0.5.0-devpreview on RPi3)

Example code : https://gist.github.com/aberteau/64343514b456693568f4003ea7682cb6

Thanks you in advance for your help.


Solution

  • Problem solved in 0.5.1-devpreview.