PWM dimmer LED Android

Thanks Noel
for the moment my problem is:
Remember the code of the circle with degrees and steps, which is moved by an encoder?
here the problem is that the code when it runs on pc
in java mode it works well while in android mode the same code of the circle does the flickering
would you know how i could fix it?
you see the code in old places
thanks