SystemClock.uptimeMillis()
This call from the Android SystemClock will reset back to zero before it 'Maxes Out'
Right now I use this to base off animations, movement etc below is an example of where a reset would essentially freeze my application.
if (currentTime > frameTime + sequenceTime)
{
frameTime = currentTime;
}
Here lies the problem currentTime
is say 50 then the frameTime
is set to 50 right? Ideally the currentTime
would increase with the SystemClock.uptimeMillis()
but if its reset? The currentTime becomes very small compared to the frameTime
How would I go about fixing this or reset the currentTime
for all objects?
This is just a small example if I have different objects having a similar dilemma.