Questions tagged [application-restart]

Questions based on restarting programs in various programming languages belong in this tag.

Based on certain conditions, the entire application may need to be restarted. In these cases, it is likely that the code file in question is already being run as the main() of the application. Restarting an application at this level is not always trivial.

Since different languages may handle this differently, a question tagged with this tag must also be tagged with the programming language being used

236 questions
0
votes
3 answers

How to restart the app when user is in secound actvity and changed language in android

I have 2 activities Activity1,Activity2 , when i open my application Activity1 will get displayed from there i will navigate to Activity2 and this time Activity1 is in background. When i am in Activity2 ,i am Activity2 i am opening the settings and…
Krishna
  • 805
  • 8
  • 14
0
votes
1 answer

What is the iOS user preference for notifying user must restart the app correctly?

I have an app that uses sharing of CoreData in iCloud when activated by the user. Upon activation, the app needs to be restarted because most of the sharing code is done in AppDelegate. What is the accepted way of not only notifying the user to…
SpokaneDude
  • 4,856
  • 13
  • 64
  • 120
0
votes
2 answers

Restart game in java using y/n?

how do you restart game in java? this is what i tried but did not work: String playagain; String y="y"; String n="n"; //there is a huge chunk of code that goes in here for the game System.out.println("play another game?(y/n)"); …
droidnoob
  • 333
  • 5
  • 17
0
votes
1 answer

Android application restart with pending intent (BEHAVIOUR)

I have searched for this scenario on SO. But I need some basic information. The case is simple: The application needs to restarted but the launcher screen of the device is not supposed to be shown. (for some obvious reason, I want to free the…
0
votes
1 answer

How to get fast ASP.Net application shutdown for restart/recycle on high traffic site?

I'm running a very high traffic site that gets a good 300+ requests/second (http://cooltext.com). A restart takes a good 90 seconds at least for it. So every time I post a new build it goes down for a minute or two. Long enough to trigger my…
Bryan Legend
  • 6,790
  • 1
  • 59
  • 60
0
votes
0 answers

how to restart my program

how to restart my program in assembly 8086. Operating system win 8.1 using emulator "emu8086". when restart all variable contain previous data. I want to clear previous data and restart my program. please tell me the solution.
0
votes
2 answers

android app reacts properly to to phone's back button but crashes with nulpointerexception when clicked on menu's back button

i have an activity (say A2) which gets an id from its parent activity (say A1) and after fetching results from database prepares a list. on clicking a list item it passes the another id to a child activity (say A3) for further processing.Now when i…
0
votes
2 answers

onResume works even if activity is started

I have an onPause and an onResume, see the two: @Override public void onResume(){ super.onResume(); String str = ""; SharedPreferences prefs = this.getSharedPreferences( "com.example.app", Context.MODE_PRIVATE); for (int…
user1862770
  • 307
  • 1
  • 4
  • 13
0
votes
2 answers

Restarting/Resetting program when radiobutton is selected

I'm trying to figure out how I can reset my windows form application once the option to do so has been selected from a choice of to radio buttons. eg:. So once "Yes" is selected the program resets. Here is what I have been trying. private void…
user3496101
  • 303
  • 1
  • 6
  • 14
0
votes
1 answer

Is there an easy way to restart a python 3 code once it has ended?

I am running a simple program that takes user info, stores it, manipulates it then prints the results. The program is intended to be run multiple times in a row and it would be nice to be able to do this without having to exit it and restart it…
J-Thor
  • 5
  • 3
0
votes
2 answers

Game speeds up after restart

So I have this whole bunch of flash, actionscript3 code that works as a flappybird/shooting game. The problem is I made a restart button at the very bottom of the code but everytime I click the restart button the game speeds itself up. so all the…
0
votes
1 answer

How do I programmatically restart a Java program?

I have a Java program that I want to be able to automatically restart (say, in the event of a detected fatal error, the user has the choice to restart or quit). How can I do this?
Ky -
  • 30,724
  • 51
  • 192
  • 308
0
votes
1 answer

Monitor and automatically restart another program after crash with C

An application that I have running all the time (written in C++) randomly crashes since the last update but in between crashes it works well so I want to keep it running. It crashes with segfault. I tried writing a simple C program like…
JB0x2D1
  • 838
  • 8
  • 20
0
votes
4 answers

Restart Activity with back button

Basically my MainActivity has a button which will become invisible after clicking and the SecondActivity will be called after a few seconds. However, when I press the back botton, the button on the MainActivity is still invisible. I want the…
Wallyfull
  • 181
  • 1
  • 2
  • 16
0
votes
1 answer

Need help adding not responding check to batch file

I am in need of help to adding a not responding check to my .bat and restarting a server application when it is not responding. This is what I have so far. @echo on tasklist /nh /fi "imagename eq javaw.exe" | find /i "javaw.exe" >nul && ( echo…
Kaillera
  • 23
  • 6