As you want to write an Android app, I guess you have a device running that operating system.
There is an Android app that allows you to develop native apps directly on the device, in a surprisingly powerful IDE. The app is called AIDE and is available on Google Play: https://play.google.com/store/apps/details?id=com.aide.ui&hl=de
1
solved Programming Android App Online [closed]