I am using Android Studio for the API 19
. I want to get the time from the internet and not from the device, my application ("game") depends in part on the date (day, hour, minute), and changing the date of the device would be "cheating".
I have 2 options in mind
What do you recommend me to use (or what other alternative) and what code can I use?
Thank you.