Top "Application-lifecycle" questions

What is Activity.finish() method doing exactly?

I'm developing android applications for a while, and followed a lot of posts about activity life cycle, and application's life …

android activity-lifecycle ondestroy application-lifecycle
Is there any way to check if iOS app is in background?

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

ios objective-c uiapplicationdelegate application-lifecycle ios-background-mode
Using the Android Application class to persist data

I'm working on a fairly complex Android application that requires a somewhat large amount of data about the application (I'd …

android application-lifecycle
When does Application's onCreate() method get called?

In my Android application, I have a DefaultApplication class which extends android.app.Application, and in its onCreate() I bind …

android-activity oncreate application-lifecycle android
Register and Unregister the BroadcastReceiver in Application Class

I have a broadcast receiver Which is registered in the onCreate() method of Android Applcation class but How to unRegister …

java android android-lifecycle application-lifecycle
Method should call once and only once in its lifecycle

I have a method which is actually a scheduler which runs a process in every one hour and create a …

java static classloader application-lifecycle
How can I check when an app comes back into the foreground from the background, but not from push notification?

func application(application: UIApplication, didReceiveRemoteNotification data: [NSObject : AnyObject]) { var dat = JSON(data) if application.applicationState == UIApplicationState.Active { // app was already …

ios swift lifecycle appdelegate application-lifecycle
applicationWillTerminate: not being called

I'm using applicationWillTerminate: to save some last-minute stuff. But the problem is that it never gets called. If I do …

ios cocoa-touch uiapplicationdelegate application-lifecycle
Finishing android app on HOME button click

How to finish the application on HOME button click?

android application-lifecycle