Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Error setting TimePicker Hour property on Android

$
0
0

Hi,

I'm trying to set a stored hour to a TimePicker on the OnCreate method.

var _time = dialogView.FindViewById<TimePicker> (Resource.Id.timeDialog_timePicker);

_time.Hour = 8;

On the simulator, it works fine, but on a real device, it shows the following exception:

Java.Lang.NoSuchMethodError: no non-static method "Landroid/widget/TimePicker;.getHour()I"

Any ideas if this is a Xamarin bug?

Testing on a Moto G 1st get. OS Android 5.1

Thank you,

Daniel


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>