line bisection example for Android