android-scripting

Is there any way to run Python on Android ?

I like the Android platform. Actually, with some friends, we even participate to the ADC with the Spoxt project. But Java is not my favourite language at all. We are working on a S60 version and this platform has a nice Python API. Of course there is nothing official about Python on Android, but since Jython exists, does anybody know a ...

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? ...

Android - Use WebView to evaluate a javascript string and return the value

Given that scripting is not natively supported in Android and wrapping libraries like javax.script.ScriptEngine into your app will make it too large, is it possible to send a javascript string to an invisible WebView and have it evaluate the string and return you the results (another string)? I want to go this route because I want to ...

Download scripts for Android Scripting Environment

Downloaded ASE from google code, and was looking through tutorials, and available scripts. I found a script I wanted to try, however copy pasting it is removing all whitespace (and this is a Python script...). Is there a simple way to download a script from the internet into the Android Scripting Environment? ...

Making an android Python service to run in suspend state

Here's my Python script written using android-scripting: import android, time droid = android.Android() interval = 1 # every 1 minute while True: # define your own vibrate pattern here droid.vibrate(200) time.sleep(0.3) droid.vibrate(300) time.sleep(60*interval) It basically vibrates every minute (like a motivat...

Using Android's `Timer.schedule` in Python

Could someone explain how to use the Timer.schedule - that is used for scheduling tasks - in Python? Note that Python's time.sleep will not work in Android. ...

Can I port my existing python apps on ASE?

I learned that the Android Scripting Environment (ASE) supports python code. Can I take my existing python programs and run them on android? Apart from the GUI, what else will I need to adapt? How can I find the list of supported python libraries for ASE? ...

How to get a Device Specific UID using Python in ASE on Android?

I am working on am Android Scripting Environment (ASE) script in Python to replicate an iPhone app. I need a device UID of some sort. My thoughts where a salted MD5 hash of the MAC address or device phone number, but I can't figure out how to access either of those using the Python APIs within ASE. What can I do to create a UID in Pyth...

running python from an android app

Hi everyone, I am trying to run a python script through an application I've written. I found some pages which say that this piece of code is doing it, but I can't figure it out. http://code.google.com/p/android-scripting/source/browse/android/AndroidScriptingEnvironment/src/com/google/ase/locale/LocaleReceiver.java Can someone explain ...

installing python packages on android

I want to install a python package from source on android. Is this possible? I tried in the console to run the py install files, but distutils (.core, ccompiler) isn't being found. Is it possible to still install them? ...

Using python in android to interface to sql

I know you can use python and other scripting languages in android. But I haven't seen weather or not it was possible to use python as an interface to sqlite in android. Is this possible? This is the first android app where I've needed sqlite, and using the java api's is retarded. If this isn't possible, can someone point me to a good t...

Writing python (or any other SL4A) in android

Can someone point me to a tutorial on using the android scripting enviornment? I've seen plenty of tutorials on how to write python code using the android API especially from http://code.google.com/p/android-scripting/wiki/Tutorials. But none of what I've seen gives a good example of how this all works inside android or how to call you...

Disribute program with scripts in android

I'm confused how the the android scripting enviornment is supposed to work. Is there a relatively easy way to include python scripts that I run from my java code without making the users download any new applications or anything? Or am I completely misunderstanding how ASE works? ...