how can i run arduino IDE on android?

The Arduino IDE runs on my Raspberry Pi, albeit slowly. I have a full gcc AVR toolchain installed as well as a copy of avrdude. So, we know it's possible to install the Arduino IDE on ARM processors. You might have more luck with a starting point if you explore how it was ported to the RPi.