Questions tagged [relaunch]

46 questions
5
votes
4 answers

How does one relaunch Finder programmatically?

If I OPTION + RIGHT CLICK on the Finder icon, I get a "Relaunch" option in the context menu. I would like to programmatically relaunch Finder, if at all possible. I'm sure there is a better way to do it than to just kill it and let it restart. …
i_am_jorf
  • 53,608
  • 15
  • 131
  • 222
4
votes
1 answer

Wear OS - How to automatically start app on device restart

I've created a Wear OS app. It has a service running in the foreground. I need to have the app always executing. When I restart the watch the app doesn't start executing again. How can I automatically relaunch the app? It's my first app for Wear OS…
lmano
  • 41
  • 1
4
votes
4 answers

Re launch JVM with bigger heap space

I want to be able to execute the .Jar file, and if the heap space isn't set big enough, it should launch a new JVM with the same .Jar file, but set with a bigger heap space, and then close the first JVM and .Jar. I've tried using the ProcessBuilder,…
4
votes
2 answers

iOS9 startMonitoringSignificantLocationChanges doesn't launch app when terminated?

I'm working on an iPhone app that needs to send the current location to a server so it knows what push notifications to send. It doesn't have to be very precise, startMonitoringSignificantLocationChanges is perfect for my needs. This all works well…
Janneman
  • 1,093
  • 15
  • 23
4
votes
1 answer

Re-launch android application programmatically

I am working on I18N application which works for 6 countries, In have a requirement like, when the user changes the language from the settings, the application should be restart itself and display the app in changed language. for that I am storing…
Ganesh
  • 662
  • 3
  • 8
  • 26
4
votes
1 answer

Download install and relaunch updates for your Mac/Cocoa app

I was wondering if anybody has any suggestions for how to install and relaunch your updated app when you download it from Internet! There are tons of apps that get their new versions and install and relaunch themselves but I don't know anyway but…
Ali
  • 18,665
  • 21
  • 103
  • 138
3
votes
1 answer

Electron's app.relaunch() loose stdio

Using chokidar.watch(mainFile).on('change', () => { app.relaunch(); app.exit(0); }); I can have my Electron app auto-reload on source change. However since the main process is killed, I loose the terminal output which is necessary for…
Marco Ancona
  • 2,073
  • 3
  • 22
  • 37
3
votes
1 answer

Is it possible to relaunch an app when sandbox deployed?

all, I am having a need to relaunch my app. Googled and got two suggestions: 1. https://gist.github.com/2204627 got the lsboxd message directly. 2. http://13bold.com/tutorials/relaunching-your-application/ got LSOpenFromURLSpec() returned -10827 ...…
Terry
  • 337
  • 2
  • 9
2
votes
1 answer

How to relaunch an app like facebook-ios-sdk does?

Question: I am actively looking in the source code on Github's facebook-ios-sdk project myself but I was wondering if anyone already knows how to relaunch an app that sent an iPhone user to Safari, such that the user can come back after some work…
pulkitsinghal
  • 3,855
  • 13
  • 45
  • 84
2
votes
3 answers

Relaunching my app from same state gets failed, Oops :(

What I am trying to say here is the problem I'm facing to relaunch my app from same state where it was left before. I have did lot of R&D on this and have gone through the questions posted in stackoverflow.So please it is not necessary to say that…
tejas
  • 2,435
  • 10
  • 37
  • 54
2
votes
0 answers

Android App Restart - Not Working for Android 11

To Restart the App : done as below : fun restartApp(context: Context) { try { val mStartActivity = Intent(context, SplashActivity::class.java) val mPendingIntentId = 123456 val mPendingIntent: PendingIntent =…
Jaimin Modi
  • 1,530
  • 4
  • 20
  • 72
2
votes
1 answer

How can a Mac GUI app relaunch itself without using Sparkle?

I'm adding a feature to a Mac program to delete its preferences .plist file, and then relaunch with what are effectively "factory settings". However, the customer for this is leery of using external frameworks like Sparkle. I've looked online for…
Bob Murphy
  • 5,814
  • 2
  • 32
  • 35
2
votes
1 answer

NOT show the last screen when launching iOS App

My app has a feature that, when enabled, presents a “decoy” screen whenever the app is launched. The user then has to tap in a “secret knock” to dismiss the decoy screen and see the password screen. The problem is, when the app is launched, a split…
1
vote
2 answers

getIntent().removeExtra() in Activity doesn't work for android:launchmode="singleTask"?

I am relaunching my HomeActivity and setting an extra "relaunchstatus" in the Intent. In Activity's onCreate() method I check this value, if present, show some alert. The launchmode for this activity is android:launchmode="singleTask". The issue…
Pritam
  • 2,367
  • 5
  • 34
  • 50
1
vote
2 answers

How to relaunch application when app went to background to foreground in android?

In my application , i had wierd problem that when app goes background (press home button) , then i should restart my app when it comes to foreground , Instead of getting previous state. Can any one help me to sort out this. EDIT: i explain my…
Srinivas
  • 1,688
  • 8
  • 30
  • 51
1
2 3 4