Android Question get selection on label

I have turned on the ability to select text on a label like this:

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 :

Now I need to be able to get the selected text on the label when executing ContextMenuClick_Event.
This is easy for Edittext but how will it be done for Label?
Thank you dear Earl
The link below is a way to do this in Android Studio, can not this be written with Java in B4A?

Get Selected Text from TextView

After searching the forum, I realized that Mr. corwin42 has done something like this before, could you please publish the complete code that can implement the above link in B4A for everyone?

Upvote 0