This project tries to port some functionality from the PAW Server (http://paw-android.fun2code.de/) to the bottle webframework.
Current functionality:
- SMS threads
- Send SMS
It works via WLAN or USB connection. When in WLAN mode, the ip to point your browser at will be shown in the notification area. With USB you have to forward the port 8080 with adb and use localhost (see related topic.)
- Install the Android SDK (http://developer.android.com/sdk/)
and make sure that the folder platform-tools is in your
PATH (for
adb
) - Install SL4A (http://code.google.com/p/android-scripting/) on your phone
- Install Py4A (http://code.google.com/p/python-for-android/) on your phone
- Start Python for Android on your phone and press "Install"
- Get the current files of droidbottle
- Run
./install.sh
Start script run_droidbootle.py in SL4A or use ./droidbottle-l
for
a local USB connection.
adb forward tcp:8080 tcp:8080
Start a server in SL4A/Interpreters/Menu, look up the port in SL4A notifications and forward the port:
adb shell am start -a com.googlecode.android_scripting.action.LAUNCH_SERVER -n com.googlecode.android_scripting/.activity.ScriptingLayerServiceLauncher adb forward tcp:51943 tcp:51943 export AP_PORT=51943 python run_droidbottle.py