I have tried many methods but the sis application displays blank sheet.
Do you have to add readdevicedata capability during making the sis?
I have tried many methods but the sis application displays blank sheet.
Do you have to add readdevicedata capability during making the sis?
Pls ignore wrong indentation as shown.
My script is able to run within python:
import location
class network :
def __init__(self) :
self.text = u""
def network(self) :
(self.mcc1, self.mnc1, self.lac1, self.cellid1) = location.gsm_location()
self.text = u"Cell ID : %s\n(MCC) : %s\nMNC/NID) : %s\n(LAC) : %s" % (self.cellid1,self.mcc1, self.mnc1, self.lac1)
return self.text
def close(self) :
pass
e32.ao_yield()
class phone_app:
def __init__(self):
self.lock = e32.Ao_lock()
self.old_title = appuifw.app.title
appuifw.app.title = u"Phone"
self.exit_flag = False
appuifw.app.exit_key_handler = self.abort
self.db = network()
appuifw.app.body = appuifw.Text()
appuifw.app.menu = [(u"Refresh", self.refresh)]
def loop(self):
try:
self.refresh()
self.lock.wait()
while not self.exit_flag:
self.refresh()
self.lock.wait()
finally:
self.db.close()
def close(self):
appuifw.app.menu = []
appuifw.app.body = None
appuifw.app.exit_key_handler = None
appuifw.app.title = self.old_title
def abort(self):
# Exit-key handler.
self.exit_flag = True
self.lock.signal()
def refresh(self):
self.db.network()
appuifw.app.body.set(self.db.text)
def main():
app = phone_app()
try:
app.loop()
finally:
app.close()
if __name__ == "__main__":
main()
I signed your app my devcert and it works
I also have my devcert to sign Pys60scriptshell.sis and many unsigned sis files.They all able to run well inside my phone.
Is there any difference in devcerts?