Я заметил, что System.currentTimeMillis () зависит от устройства. If I change the time on the device's clock, this method will return a different answer.
For example: If the real time now is 10:00, and I change the clock on my device to 9:30, then System.currentTimeMillis() will return the 9:30 time (in milliseconds..).
I've also tried this answer and some other answers, but didn't Найдите что -нибудь полезное.
Я должен указать, что мое приложение работает в основном в автономном режиме.
Есть ли способ получить реальное текущее время (независимое от устройства) без внешнего API? < /p>
Подробнее здесь: https://stackoverflow.com/questions/269 ... -often-dis
Мобильная версия