hello, im trying to make a little script that prints the latitude on a canvas using a internal gps from a n95 phone , but im getting an unexpected behaivor, my app closes when it tries to print the latitude, any idea of what is going wrong here?
thanks
o.
here is the code:
from graphics import *
import appuifw
import e32
import positioning
appuifw.app.screen='normal'
appuifw.app.title=unicode('My Test App')
canvas=appuifw.Canvas()
appuifw.app.body=canvas
positioning.select_module(positioning.default_module())
positioning.set_requestors([{"type":"service",
"format":"application",
"data":"test_app"}])
d = positioning.position()
e = d["position"]
canvas.clear()
canvas.text( (2,12), str(e["latitude"]))

Reply With Quote
!

