| Reply | « Previous Thread | Next Thread » |
|
hi I have a problem
![]() I wrote this: Code:
def quit():
globalui.global_query(u"Do you want to quit?")
app_lock.signal()
appuifw.app.set_exit()
how to make it, that the app only ends when I'm pressing yes? |
| JimmPooJimmPoo |
| View Public Profile |
| Find all posts by JimmPooJimmPoo |
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
|
Quote:
For preventing the application to close when you press red key, you can use the envy module. Then, if you press the red key it will still run in background. ![]() And for quiting just when user select yes on the query, you can do this: Code:
import appuifw, globalui
def quit():
query = globalui.global_query(u"Do you want to quit?")
if query == 1:
app_lock.signal()
appuifw.app.set_exit()
Hope it helps, Rafael.
Last edited by Rafael T. : 2008-10-29 at 20:09.
|
|
hmm okay but when I use the code I've written in fist post, a message appears: "Do you want to quit?"
Those things to choose: "No" and "Yes" When I press "Yes" -> App ends... But when I press "No" -> App ends too.... how to change that? What I want: when u press "no" app will still run... I would look at croozeus.com, but there is connection error ![]() |
| JimmPooJimmPoo |
| View Public Profile |
| Find all posts by JimmPooJimmPoo |
|
Join Date: Feb 2008
Posts: 743
Location: Belo Horizonte, Brazil
Rafael T.
Offline
Forum Nokia Champion
|
|
|
Quote:
![]() I have edited the previous post, see the example I did, please. You have only to use the 'if' clause ![]() If the query returns 1, the user selected yes, and if returns 0, the user selected no. ![]() BR, Rafael. |
|
Great. Thank u bro
![]() |
| JimmPooJimmPoo |
| View Public Profile |
| Find all posts by JimmPooJimmPoo |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Try to ODD app, get Symbian err -10509 | glindberg | Mobile Java Tools & SDKs | 2 | 2008-05-30 06:58 |
| renaming app, how?? | Audun Holme | General Symbian C++ | 2 | 2007-05-13 13:10 |
| HttpConnection fails when app in background (onS60 phone) and WAP browser uses new AP | david_parry1976 | Mobile Java Networking & Messaging & Security | 0 | 2007-02-22 17:37 |
| Dialog's clipping area (again). Nokia experts, please help | synov | Symbian User Interface | 0 | 2004-06-26 15:35 |
| 7650 - go back, close my app not closing the container app | geran | Digital Rights Management & Content Downloading | 1 | 2002-12-05 10:58 |