[Android] Regulate frame rate on the draw thread in java.