Python crap

[email protected]
Newsgroups alt.alt
Message-ID <[email protected]>
import android
import sys, select, os
zooz = android.Android()

zooz.eventClearBuffer()
zooz.startLocating()
ziz = zooz.eventWaitFor('location',10000).result
lat = repr(ziz['data']['gps']['latitude'])
lng = repr(ziz['data']['gps']['longitude'])

if ziz['name'] == "location":
 try:
  eah = "1"
 except KeyError:
  eah = "0"

zubs = "[E:" + eah + "]"

# zooz.stopLocating()
# zooz.startLocating()
# Trying supposedly valid keywords 'network' and 'passive' gets all fucky
# nwlat = repr(ziz['data']['passive']['latitude'])
# nwlng = repr(ziz['data']['passive']['longitude'])
zooz.stopLocating()
gpstype = "#"
print (zubs + "[GPS]==========")
place = "LT:"+ lat + "-" + gpstype
print (place)
place = "LG:"+ lng + "-" + gpstype
print (place)

# print ("[CELLTOWER]====")
# place = "nLT:"+ nwlat + "-" + gpstype
# print (place)
# place = "nLG:"+ nwlng + "-" + gpstype
# print (place)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.