This commit is contained in:
ThomasV 2012-04-05 14:11:26 +02:00
parent a4e2dc8ea6
commit d46b37b3ea
1 changed files with 2 additions and 4 deletions

View File

@ -73,10 +73,8 @@ def qr_code_layout(addr):
return """<html>
<head>
<title>QR code</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ecdsa.org/jquery.qrcode.min.js"></script>
<script>
var address = '%s';
var droid = new Android();
@ -754,14 +752,14 @@ while True:
f = open('/sdcard/sl4a/scripts/recv.html',"w")
f.write(qr_code_layout(receive_addr))
f.close()
droid.webViewShow("file:///sdcard/sl4a/scripts/recv.html?url=%s"%receive_addr,True)
droid.webViewShow("file:///sdcard/sl4a/scripts/recv.html")
s = receive_loop()
elif s == 'contacts':
f = open('/sdcard/sl4a/scripts/recv.html',"w")
f.write(qr_code_layout(contact_addr))
f.close()
droid.webViewShow("file:///sdcard/sl4a/scripts/recv.html?url=%s"%contact_addr,True)
droid.webViewShow("file:///sdcard/sl4a/scripts/recv.html")
s = contacts_loop()
elif s == 'settings':