File tree Expand file tree Collapse file tree
java/com/noober/backgroudlibrary Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 package =" com.noober.backgroudlibrary" >
44
55 <application
6+ android : name =" .MyApplication"
67 android : allowBackup =" true"
78 android : icon =" @mipmap/ic_launcher"
89 android : label =" @string/app_name"
Original file line number Diff line number Diff line change 1+ package com .noober .backgroudlibrary ;
2+
3+ import android .app .Activity ;
4+ import android .app .Application ;
5+ import android .os .Bundle ;
6+
7+ import com .noober .background .BackgroundLibrary ;
8+
9+ /**
10+ * Created by xiaoqi on 2018/9/13
11+ */
12+ public class MyApplication extends Application {
13+
14+ @ Override
15+ public void onCreate () {
16+ super .onCreate ();
17+ registerActivityLifecycleCallbacks (new ActivityLifecycleCallbacks () {
18+ @ Override
19+ public void onActivityCreated (Activity activity , Bundle savedInstanceState ) {
20+ }
21+
22+ @ Override
23+ public void onActivityStarted (Activity activity ) {
24+
25+ }
26+
27+ @ Override
28+ public void onActivityResumed (Activity activity ) {
29+
30+ }
31+
32+ @ Override
33+ public void onActivityPaused (Activity activity ) {
34+
35+ }
36+
37+ @ Override
38+ public void onActivityStopped (Activity activity ) {
39+
40+ }
41+
42+ @ Override
43+ public void onActivitySaveInstanceState (Activity activity , Bundle outState ) {
44+
45+ }
46+
47+ @ Override
48+ public void onActivityDestroyed (Activity activity ) {
49+
50+ }
51+ });
52+ }
53+ }
You can’t perform that action at this time.
0 commit comments