测试手机:Nexus 5   系统:4.4

一、测试

测试代码:

 1 package com.example.androidalarm;
 2 
 3 import android.app.Activity;
 4 import android.content.Context;
 5 import android.content.res.Configuration;
 6 import android.os.Bundle;
 7 import android.util.AttributeSet;
 8 import android.util.Log;
 9 import android.view.View;
10 import android.widget.Button;
11 
12 public class MainActivity extends Activity {
13     Button addButton, cancelButton;
14     
15     @Override
16     protected void onCreate(Bundle savedInstanceState) {
17         super.onCreate(savedInstanceState);
18         setContentView(R.layout.activity_main);
19         Log.d("BigFootprint", "onCreate");
20     }
21 
22     @Override
23     public void onConfigurationChanged(Configuration newConfig) {
24         Log.d("BigFootprint", "onConfigurationChanged");
25         super.onConfigurationChanged(newConfig);
26     }
27 
28     @Override
29     public View onCreateView(String name, Context context, AttributeSet attrs) {
30         Log.d("BigFootprint", "onCreateView");
31         return super.onCreateView(name, context, attrs);
32     }
33 
34     @Override
35     protected void onDestroy() {
36         Log.d("BigFootprint", "onDestroy");
37         super.onDestroy();
38     }
39 
40     @Override
41     protected void onPause() {
42         Log.d("BigFootprint", "onPause");
43         super.onPause();
44     }
45 
46     @Override
47     protected void onRestart() {
48         Log.d("BigFootprint", "onRestart");
49         super.onRestart();
50     }
51 
52     @Override
53     protected void onRestoreInstanceState(Bundle savedInstanceState) {
54         Log.d("BigFootprint", "onRestoreInstanceState");
55         super.onRestoreInstanceState(savedInstanceState);
56     }
57 
58     @Override
59     protected void onResume() {
60         Log.d("BigFootprint", "onResume");
61         super.onResume();
62     }
63 
64     @Override
65     protected void onSaveInstanceState(Bundle outState) {
66         Log.d("BigFootprint", "onSaveInstanceState");
67         super.onSaveInstanceState(outState);
68     }
69 
70     @Override
71     protected void onStart() {
72         Log.d("BigFootprint", "onStart");
73         super.onStart();
74     }
75 
76     @Override
77     protected void onStop() {
78         Log.d("BigFootprint", "onStop");
79         super.onStop();
80     }
81 }
View Code

相关文章:

  • 2021-12-16
  • 2021-08-28
  • 2021-07-07
猜你喜欢
  • 2021-08-22
  • 2021-11-21
  • 2019-07-17
  • 2022-02-17
  • 2022-02-16
  • 2021-12-15
相关资源
相似解决方案