code androide that detect the line