Custom Android App Integration

Hi, I am trying to develop an android app, with kotlin or java, that sends a string of data over rf. I was wondering if I could use the java script api or python api. Do we know how the meshtasic app itself does it? Thanks