The Android Scripting Environment (ASE) brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device. These scripts have access to many of the APIs available to full-fledged Android applications, but with a greatly simplified interface.
Android Scripting Environment Project Home>>>
Related article describe how to install ase on Android Emulator: android-scripting: Android Scripting Environment