About ActivityLifecycleCallbacks
アプリ内の全ての Activity の Lifecycle を、Application のどの場所でも 裏側でフックする仕組みを提供する (各 Activity に、特定のクラスを継承する事や、 Lifecycle メソッドに追加の実装処理を要求せずに)
Application.ActivityLifecycleCallbacks (Android 4.0以上) を下位バージョンでも透過的に利用出来るようにする (2.2、2.3、3系の場合は、onActivityCreated、 onActivityResumed だけ、通知を受ける事が出来る)
2系、3系については Instrumentation.ActivityMonitor を利用し、com.satton.activitylifecycle.internal.ActivityLifecycleFor2 で実装している (非公式ではあるが、2系、3系のAndroidソースが今後大きく変わる事が無い前提でリフレクションを使用している) Provides a mechanism to hook in the back at the place of the Application throat, the Lifecycle of Activity of all in-app (in each Activity, and that you inherit a specific class, without requiring the implementation additional processing Lifecycle method)
You want to make available transparently in the lower version Application.ActivityLifecycleCallbacks (Android 4.0 or higher) (in the case of 2.2,2.3,3 system, it is possible onActivityCreated, only onActivityResumed, be notified)
Using Instrumentation.ActivityMonitor 2 system, for the three systems, has been implemented in com.satton.activitylifecycle.internal.ActivityLifecycleFor2 While it is (informally, there is no source that Android 2 system, three system changes drastically future I have used the reflection on the assumption)
Download and install
ActivityLifecycleCallbacks version 1.0 on your
Android device!
Downloaded 10+ times, content rating: Not rated
Android package:
com.satton.aclifecycle, download ActivityLifecycleCallbacks.apk