Class AppLifecycleCallbackHandler

  • All Implemented Interfaces:
    android.app.Application.ActivityLifecycleCallbacks

    
    public final class AppLifecycleCallbackHandler
     implements Application.ActivityLifecycleCallbacks
                        

    This class keeps track of the application's current activity. <B>It is important to register this callback, otherwise the authentication interceptors will not be able to handle challenges properly!</B> The recommended way to register this callback is by overriding android.app.Application and calling registerActivityLifecycleCallbacks from onCreate.

    <pre> public class SampleApplication extends Application {