Tuesday 28 August 2012

Beanshell Android Source Script

Edit: Updated 2014-08-26

Download

For those using SL4A and Beanshell on their Android, one of the things you need to do if you want to access the Android instance is to know the location of the android.bsh script which is included as part of the Beanshell installation.

The script embedded in the above QR code provides a simple way of working out this location without having to hard code it per script, making your scripts much more portable.

Feel free to use this any way you like, and in particular I would be interested to see any further optimisations to this script as the character count matters in a QR Code based scripts.

No comments:

Post a Comment