[mono-android] Set Device date and Time

Jonathan Pryor jonp at xamarin.com
Thu Jun 14 22:47:34 UTC 2012


On Jun 14, 2012, at 11:45 AM, Nosh wrote:
> Any ideas on how to set the device date and time via code

You probably don't.

You could probably P/Invoke settimeofday(2), but that requires that you be root, so unless you happen to be running as the root user it won't do any good.

	http://linux.die.net/man/2/settimeofday

 - Jon



More information about the Monodroid mailing list