fix for different pixel densities

changed threshold to support different pixel densities on Android