I'm trying to find a ratio between a song's current position and its total playing time.
long pTime = player.getCurrentBufferedTimeMcsec();
long pos = player.getCurrentPosition();
return (int)(pos/pTime * 1000000l);
The return expression is evaluated as zero. How can i fix this? I'm guessing it's a mixture of what type I use and concatenation, right?
Thanks!
Edit I already checked and the "player.get" calls return values, but once divided yield a decimal (like 0.06) before it is multiplied.