If i happen to not have a sim card inserted, I will basically be in the loop for 5 times before it exits. However, I want to exit immediately upon pressing the right softkey, which will basically call upon "quit_app"
# set default access point
retries = 5
addLog("Unable to establish connection")
retries = retries - 1
appuifw.app.exit_key_handler = quit_app
But in reality, i've been mashing the softkey like mad and the phone is not responding. Code is tested on N96 and N97. Any ideas what's wrong?