This code gets the system clock that user can easy change with a wrong time.
import java.util.Calendar
Date currentTime = Calendar.getInstance().getTime();
However, my apps relies on correct timestamp to work.
One solution is request the real time from my server but another requirement of my app is to be able to work offline.
So after research, I discovered that GPS also use timestamp. How to get the timestamp of the satellite in my app?