port of the Android Version