Android: Fixed for loop