set the selection anchor to start and the selection edge to stop . concode_field_sep Object SELECTION_START concode_elem_sep Object SELECTION_END concode_field_sep int getSelectionStart concode_elem_sep void selectAll concode_elem_sep int getSelectionEnd concode_elem_sep void removeSelection concode_elem_sep void extendSelection
void function ( Spannable arg0 , int arg1 , int arg2 ) { int loc0 = getSelectionStart ( arg0 ) ; int loc1 = getSelectionEnd ( arg0 ) ; if ( loc0 != arg1 || loc1 != arg2 ) { arg0 . setSpan ( SELECTION_START , arg1 , arg1 , Spanned . SPAN_POINT_POINT | Spanned . SPAN_INTERMEDIATE ) ; arg0 . setSpan ( SELECTION_END , arg2 , arg2 , Spanned . SPAN_POINT_POINT ) ; } }