arrow keys to select text like in swype
<p>I am learning android programming and have taken the task of creating my own IME.
I am using LatinIME as a base for this and creating my own SWYPE keyboard.</p>

<p>How can I implement the select-text with arrow keys that we have in SWYPE?
I have implemented the arrow-keys and can move the cursor around, but do not know how to make the selection work. It might just be that I have to set some flag that I do not know of.</p>

<p>The InputConnection.setSelection(start, end) is one available function, but do not getting how to correctly set those values either.</p>

<p>Any help is appreciated.</p>
