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 Project Home>>
My old article, android-scripting: Android Scripting Environment, described how to install Android Scripting Environment on Android Emulator.