diff --git a/AndroidUtility/src/main/java/com/ak_devt/androidutility/Utils.java b/AndroidUtility/src/main/java/com/ak_devt/androidutility/Utils.java index 1c79f32..95518af 100644 --- a/AndroidUtility/src/main/java/com/ak_devt/androidutility/Utils.java +++ b/AndroidUtility/src/main/java/com/ak_devt/androidutility/Utils.java @@ -64,6 +64,10 @@ private Utils() { throw new UnsupportedOperationException("You can't instantiate me..."); } + public static void init(final Application app) { + Utils.sApplication = app; + app.registerActivityLifecycleCallbacks(mCallbacks); + } /** * Application *