pythonlocationgsmpys60

gsm location in python


I have this script file in python running on S60:

import location

def current_location():
 gsm_loc = location.gsm_location()
 print gsm_loc

current_location()

instead of printing a tuple of mcc, mnc, lac and cellId it prints None.

on top of my python shell I see location between the capabilities included.

what can be the problem?

Development of the situation:

I thought maybe nevertheless, my problem is lack of capabilities. So I went to sign the PythonScriptShell file. I used OPDA website - I know they sign all the capabilities but three - which I don't use. I installed the signed PythonScriptShell file on my phone (N95). On the top the list of capabilities didn't change. tried to run the script again: same result - prints None.

If anyone can help me with this, it's really important.

thank you.


Solution

  • I think I can answer now one part of the problem:

    the reason for printing None is because there needed another capability: ReadDeviceData which wasn't included in the capabilities list on top of python shell.

    still, remaining the other part of the problem, why this capability wasn't included when I signed PythonScriptShell file? It is not one of the three restricted capabilities.