I want to be able to draw a selection rectangle under the control of the pointer.
I have read this post https://www.b4x.com/android/forum/threads/drawing-a-selection-window.7023/
BUT all that actually does is draw a black or white rectangle on a black background.
if I have a canvas that already...
I have turned on the ability to select text on a label like this:
B4X:
Dim jo As JavaObject = Label
jo.RunMethod("setTextIsSelectable", Array As Object(True))
And using this method, I have created my custom-context-menu-for-text-selection :
Android Tutorial - Custom Context Menu for Text...
I have submitted my app for internal testing and get this error in the crash report:
JavaScript:
FATAL EXCEPTION: main
Process: gyromagnetic.compass, PID: 19303
java.lang.IndexOutOfBoundsException: setSpan (4 ... 4) ends beyond length 2
at...