I'm not sure which versions of Android this will work for, but what you should to try to use is the Selection Object. I tried it on 4.3 and it seems to do what you need.
As a note though the page specifies the following warning:
This is an experimental technology.
Because this technology's specification has not stabilized, check the compatibility table for the proper prefixes to use in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the spec changes.
Unfortunately the compatibility table link mentioned doesn't lead anywhere. Here's a link to the Browser compatibility table for window.selection which unfortunately is not useful as well.
Here's a quick example:
HTML:
<strong>Text to select</strong>
<button onClick="selectText();">Select</button>
Javascript:
function selectText()
{
//select the element you want
var strongs = document.getElementsByTagName("strong");
//get the selection object
var selection = window.getSelection();
if (selection.rangeCount > 0)
{
//clear current selection
selection.removeAllRanges();
}
for (var i=0;i<strongs.length;i++)
{
//loop over the items and add them to the selection object
var range = document.createRange();
range.selectNode(strongs[i]);
selection.addRange(range);
}
}
I hope that helps.