working code here and also in the arduino ide examples.
yes, read the ota and http part of the docs. you can install some android arduino ide, and if they support esp, you can modify the code and upload via http
also, update the esp core to latest, 2.4.0 rc 1 or rc2, it has lots of bug fixes.