SL4A experience
Steps to program from ubuntu
phone
- mobile -> SL4A -> view -> interpreters -> menu -> private server
- find the server port number (say $PORT) for the notification bar.
Ubuntu side
- cd bin/android-sdk-linux/platform-tools
adb forward tcp:9999 tcp:$PORT
export AP_PORT=9999
- start ipython/python
import android
droid = android.Android()
droid.makeToast('Yes, I am in.')
misc
$ adb push my_script.py /sdcard/sl4a/scripts/lwl