Programmatically Upload code to Arduino from Android App

I know that there are a few applications that do what I'm trying to do, namely ArduinoCommander. I'm looking to implement the same functionality, to be able to upload code to an Arduino from within my Android App. Does anyone have any experience or resources they can point me towards to accomplish this? From what searching I've done there doesn't seem to be much available.