I tried to use tess-two, a fork of Tesseract Tools for Android. I want to turn on hocr output in tesseract, from this link, I tried to set variable tessed
Apparently, tess-two does not implement all the TessBaseAPI as it does not include support for the native GetHOCRText method. You may have to extend the wrapper yourself to access the functions you need.
The config files are meant for command-line execution. Alternatively, you can set the necessary variables through the exposed API method setVariable.