pythonandroidaseandroid-scripting

How can I interact with the android scripting environment from an android app?


I'd like to use python scripts as plugins for an app I'm developing. This seems to be possible by interacting with android-scripting-environment (ASE), as is done by Locale, but I haven't found any documentation about this. How you execute ASE scripts from your own app?


Solution

  • It looks like the Locale "plugin" is just recieving a broadcasted Intent to com.twofortyfouram.locale.intent.action.FIRE_SETTING which includs the script as an Extra with the name com.google.ase.extra.SCRIPT_NAME.

    The relevant bits are in com.google.ase.locale.LocaleReceiver.