This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android | |
droid = android.Android() | |
(id, result, error) = droid.scanBarcode() | |
print result['extras']['SCAN_RESULT'], error |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.aclevername.com/articles/python-webgui/ | |
ipc.js | |
function send(msg) { | |
document.title = "null"; | |
document.title = msg; | |
} | |
demo.xhtml | |
<script src="ipc.js" type="text/javascript"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://eishn.blog.163.com/blog/static/652318200693111385057/ | |
<form action="HAHA://example.test" method="get"> | |
<input type="hidden" value="hello"> | |
<input type="hidden" value="world"> | |
<input type="submit"> | |
</form> | |
<a href="HAHA://example.test?a=hello&b=world">submit</a> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.robertocolistete.net/Python/Android/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Androino</title> | |
<style> | |
body { | |
background: #32323D; | |
} | |
div#content { | |
padding-top:100px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.marginhound.com/using-bottle-py-and-sl4a-to-build-an-android-web-server-for-your-phone-tablet/ | |
from bottle import route, run, template,validate, static_file | |
from multiprocessing import Process | |
droid = android.Android() | |
def showurl(url=”http://localhost:8080“): | |
time.sleep(5) | |
droid.webViewShow(url) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.smartphonedaq.com/android-python-ecg.page | |
droid = android.Android() | |
droid.webViewShow('file:///sdcard/sl4a/scripts/graph.html') | |
loop=True | |
while loop: | |
e = droid.eventWaitFor('check').result | |
if (e['data']=='timer'): | |
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PW=`pwd` | |
export EXTERNAL_STORAGE=/mnt/sdcard | |
export LANG=en | |
PYTHONPATH=/mnt/sdcard/com.googlecode.pythonforandroid/extras/python | |
PYTHONPATH=${PYTHONPATH}:/data/data/com.googlecode.pythonforandroid/files/python/lib/python2.6/lib-dynload | |
export PYTHONPATH | |
export TEMP=/mnt/sdcard/com.googlecode.pythonforandroid/extras/python/tmp | |
export PYTHON_EGG_CACHE=$TEMP | |
export PYTHONHOME=/data/data/com.googlecode.pythonforandroid/files/python | |
export LD_LIBRARY_PATH=/data/data/com.googlecode.pythonforandroid/files/python/lib |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sympy import pprint, apart | |
from sympy.abc import * | |
pprint(apart(z/(z**2-z-1),z)) |