application-lifecycle Questions

5

Solved

I'm investigating a weird issue, where we changed the androidx.appcompat:appcompat from 1.3.1 to 1.4.1 and all of a sudden our LifecycleObservers observing process lifecycle stopped emitting any ev...

1

I've a strange behavior with an android app when it runs on a S3 with android 4.3: every time app goes to background (pressing back button), when it's resumed, it calls the onCreate() method of App...
Uboat asked 26/6, 2014 at 17:58

9

I want to check if the app is running in the background. In: locationManagerDidUpdateLocation { if(app is runing in background){ do this } }

2

Solved

Peace be upon you I am researching Flutter's widget lifecycle and stopped at a point which is the this.mounted boolean variable, it does exist directly in the State class, which can only be connect...

0

We have a task that is run when the Application is created and we're trying to move the code from our Application object's onCreate to their own Lifecycle aware classes. I'm added my ApplicationLif...
Heterogony asked 29/9, 2022 at 8:48

13

Solved

I'm developing android applications for a while, and followed a lot of posts about activity life cycle, and application's life cycle. I know Activity.finish() method calls somewhere in the way to ...

1

Solved

I want to call some method when a user exits an application (see 1, 2 for help). class BaseApplication : Application(), LifecycleObserver { override fun onCreate() { super.onCreate() // Regist...
Irredentist asked 9/2, 2021 at 8:44

2

Solved

I've read most articles I can find about IHostApplicationLifetime and CancellationToken's in .NET Core 3.1, but I cannot find a reason why this is not working. I have a simple BackgroundService wh...

1

Solved

My console posted this error today, [ApplicationLifecycle] UIWindows were created prior to initial application activation. This may result in incorrect visual appearance. This has caused Applicati...
Tressietressure asked 8/11, 2019 at 19:12

7

Solved

I'm working on a fairly complex Android application that requires a somewhat large amount of data about the application (I'd say a total of about 500KB -- is this large for a mobile device?). From ...
Mcfarlane asked 17/11, 2010 at 20:34

6

Solved

Which method and function is called first when any iOS application start ?
Mukul asked 18/2, 2011 at 10:6

1

Solved

I have an app that supports iOS 12. I am adding support for iOS 13. I have a view controller that needs to perform a quick action when the app goes to the background. Prior to iOS 13 that is simpl...
Hunyadi asked 14/8, 2019 at 4:10

4

Solved

There are lots of reasons why detecting if application is on foreground. for example - as a trigger to GCM/C2DM push notification - lot's of apps would have good reason implementing different behav...
Serica asked 26/12, 2012 at 18:20

5

I have a broadcast receiver Which is registered in the onCreate() method of Android Applcation class but How to unRegister the same example public class MyApplication extends Application { @Ove...
Manaker asked 17/8, 2017 at 6:49

3

Solved

Currently in my UWP application, I provide a way to change the app theme. But in order for the change to be effective, the user has to manually close the app and restart it. I'm looking for a way t...
Jarry asked 16/9, 2016 at 18:24

2

Solved

How can I open my app, when user receive notification and my app was in background? Of course tap on notification itself would open app, but how to handle it with custom notification action? I hav...

1

I am trying to learn play framework. I want to implement the lifecycle callbacks of play framework in my application. Now i saw that it can be easily done using GlobalSettings below: object Global...

4

I'm using applicationWillTerminate: to save some last-minute stuff. But the problem is that it never gets called. If I do something like this at the top of the method: NSLog(@"Something"); it doesn...

2

Solved

I still don't get how the Application (not Activity) lifecycle is, It is pretty obvius that Application's onCreate method is called when you start the GUI. But, is it started in ANY or ALL of the...

1

func application(application: UIApplication, didReceiveRemoteNotification data: [NSObject : AnyObject]) { var dat = JSON(data) if application.applicationState == UIApplicationState.Active { // a...
Marna asked 19/4, 2015 at 22:59

3

Solved

In my Android application, I have a DefaultApplication class which extends android.app.Application, and in its onCreate() I bind some services which will be used by my other Activities in this app....

2

Solved

I know about the Windows Phone 8.1 Applications lifecycle: http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff817008%28v=vs.105%29.aspx But, is it possible to keep active the applicati...
Offbeat asked 15/6, 2014 at 23:41

1

Solved

In the Android Application class you can register/unregister ActivityLifecycleCallbacks, which allow you to monitor Activity lifecycle events in your application all in one place (if you so desire)...
Wiseman asked 25/7, 2013 at 17:47

1

Solved

I have a problem how to await async methods in WPF life-cycle methods (with Caliburn-Micro framework) (eg. OnActivate, OnInitialized, OnExit - which is bound directly to Application.Exit event) Th...
Webber asked 5/9, 2013 at 13:15

© 2022 - 2024 — McMap. All rights reserved.