Are you asking about how to write a method that scrambles the letters in a word, all but the first and last letter? If so, that has nothing to do with Android specifically; it is a basic
Java algorithm (think shuffle sort)
By the way, I wrote that exact method many years ago. The idea comes from some research someone did that even if you misspell words in that way that the reader can still understand what you wrote. I'll post the link when I find it - it is in the comment of the class that implements this method. (Well, the comment didn't contain the URL, but I did find this:
http://www.douglastwitchell.com/scrambled_words.asp. There is also evidence that this was a hoax, that no such research was done.)
No, I will not post my code. But I would be happy to discuss and critique your algorithm for how to do this. It really is a simple algorithm. Though I have to admit that my algorithm was not optimized - I used it as part of a mock performance
test so making the JMV work a little harder was part of my goal.