block the manual change of date and time

15 views
Skip to first unread message

Carlos Andre

unread,
Nov 18, 2019, 9:02:23 AM11/18/19
to MIT App Inventor Forum
I am developing application for access control and cannot allow user to change date and time of android device manually. Is there a way to block the manual change of date and time?

SteveJG

unread,
Nov 18, 2019, 9:20:56 AM11/18/19
to MIT App Inventor Forum
There is probably NOT a way to "to block the manual change of date and time" using the Android's Settings.  Device manual Settings override all code in the app.  

Why do you want to block a manual change?


Taifun

unread,
Nov 18, 2019, 9:33:12 AM11/18/19
to MIT App Inventor Forum
don't get the date and time from the device, get it form a server instead...
you can do this using the web component and a date time API of your choice

also there are extensions available, for example
for a list of available extensions see also here https://puravidaapps.com/extensions.php

Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

Reply all
Reply to author
Forward
0 new messages