Read pixel as double working on Android