I am currently using the Samsung Galaxy Tab P1000 and I am stuck in a problem that I do not know for sure if this happens on all smartphones. When syncing GPS every time I get location.getTime (); it returns the actual date plus 1 day. Am I doing something wrong or is this a mistake?
Here is the code:
@Override
public void onLocationChanged(Location location) {
setRealTime(location.getTime());
...
data = new Date();
data.setTime(getRealTime());
}
And now, for example, today it’s 15:31 01/16, it shows 15:31 01/17
The problem is solely in the Samsung Galaxy Tab P1000 ...
any ideas?
source
share