adb forward tcp:9999 tcp:47000
, replacing 47000
with your port number.AP_PORT
environment variable. On UNIX or Mac, run export AP_PORT=9999
. On Windows, type set AP_PORT=9999
.adb push my_script.php /sdcard/sl4a/scripts
, replacing my_script.php
with the script you wrote.ANDROID_HOME
environmental variable that points to your Android SDK location and add the tools subdirectory to your path.