Questions tagged [quit]
156 questions
4
votes
1 answer
How to make my scala program quit and return to the REPL?
So I made this scala file and it works great when I load it into the REPL. What I want to do though is when the user inputs "Q", it exits the program and returns to the REPL. I already have readLine set up with a case match that says:
case "Q"…

Chris
- 233
- 2
- 5
- 14
4
votes
5 answers
Python socket accept in the main thread prevents quitting
I'm playing around with sockets in python, just for the purpose of learning about them. However I am really annoyed with the following problem:
import socket
soc = socket.socket(socket.AF_INET)
soc.bind(('localhost',8000))
soc.listen(0)
client =…

Joe
- 2,994
- 5
- 31
- 34
4
votes
2 answers
Quit an applescript application after the execution of a shell script
I was wondering if it is possible for an applescript application to run a shell script, then quit before the execution of the shell script is completed. This would be useful when running a server for a given amount of time. Instead of needing the…

Phro
- 375
- 2
- 11
3
votes
3 answers
HP WebOS 3.0 Emulator, how to navigate
does any know how i can exit a program in HP webOS 3.0 Emulator. There isn't any home button and i can not find answer anywhere with google. Thanks

Peacemoon
- 3,198
- 4
- 32
- 56
3
votes
2 answers
How to exit from an android app?
I've just read that you can exit an android application by simply calling:
finish();
However this is not the case! When I do this I get the following errors:
PackageInstallationReciever Remove /data/local/tmp/com._____.apk Fail!
AndroidRuntime…

ingh.am
- 25,981
- 43
- 130
- 177
3
votes
2 answers
How to implement the timer to run inside Alarm Receiver even after the app quits?
I have used Alarm Service. I have implemented the the alarm to run on every 1 minute. So the broadcast receiver onReceive method gets called even after the app quits. I want to implement a timer inside of this onReceive method. I have to start…

M Vignesh
- 1,586
- 2
- 18
- 55
3
votes
1 answer
IWebBrowser2 Quit method fails with a E_FAIL result
I am hosting the web browser control in my own window. Here are the pertinent steps:
CoGetClassObject(CLSID_WebBrowser,
CLSCTX_INPROC_SERVER | CLSCTX_INPROC_HANDLER,
NULL, IID_IClassFactory, (void…

Subhash Bhardwaj
- 93
- 1
- 6
3
votes
2 answers
How to automatically call a function before "kill-emacs" by mouse?
I need to call "my-global-modified-flag-update" function before closing Emacs (C-x C-c).
This function marks as unmodified the buffers that I don't need to save, thus avoiding Emacs to ask me for.
Of course it must run as first task, before Emacs…

Mario Giovinazzo
- 431
- 2
- 12
3
votes
3 answers
How to quit an iPhone app nicely?
or "How to simulate a home button pressed event?"
I need to restart my iPhone app, and I want the program to quit, so the user will only have to start it.
If I simply use exit(0) some changes won't get saved, as they would if the user quits by…

shinjin
- 2,858
- 5
- 29
- 44
3
votes
4 answers
Phonegap: force an app to quit instead of running in background
I'm developing an iPhone/iPad application through Phonegap, is there a way to implement a sort of "click here to quit app"? I mean quit for real, not "put it in the background and go to home screen".
Thanks in advance.
user1659862
2
votes
0 answers
How to killprocess in Android 4 (Ice Cream Sandwich) so that 'force stop' is grayed out in settings?
I have a 'quit' button in my app. When user quits, I finish() all my acivities on the stack and then call android.os.Process.killProcess() in the base activity such that when the user goes into their Application settings and look at my application,…

fatfreddyscat
- 835
- 3
- 8
- 26
2
votes
0 answers
How to disable gps lookup in android again
How am i able to Stop GPS from receiving new signals?
Just use:
if you initialize a LocationManager Object
mLocationManager_ = (LocationManager) mContext_.getSystemService(Context.LOCATION_SERVICE);
add a location listener, GPS is starting to a…

cV2
- 5,229
- 3
- 43
- 53
2
votes
2 answers
Using the closeEvent in a qt application does not close it
I am learning qt, and experimenting with examples from a textbook.
The original textbook code has the following, set up to save and close on the x button:
void MainWindow::closeEvent(QCloseEvent *event)
{
if (okToContinue()) {
…

Thalia
- 13,637
- 22
- 96
- 190
2
votes
7 answers
How to Quit Android App
I have an Android App, and has several activities. I need to provide the button for each activity or specific activity which should allow to Close the App, without going to back to previous activities or run in background.
I…

AjayR
- 4,169
- 4
- 44
- 78
2
votes
2 answers
Application.Quit in UserForm attempts to run rest of macro before exiting
My question is: using VBA in Excel 2013 how can I gracefully close an entire instance of Excel when the user decides they don't want to fill out a UserForm and clicks quit or cancel?
Currently, if the user clicks quit or cancel, I check to see if…

TenaciousSisyphus
- 23
- 1
- 4