标签:
1 package com.example.metrox.l13; 2 3 import android.app.Application; 4 import android.content.res.Configuration; 5 import android.provider.Settings; 6 7 /** 8 * Created by MetroX on 2016/6/13. 9 */ 10 public class App extends Application { 11 private String textDate = "Default"; 12 13 public String getTextDate() { 14 return textDate; 15 } 16 17 public void setTextDate(String textDate) { 18 this.textDate = textDate; 19 } 20 21 @Override 22 public void onCreate() { 23 super.onCreate(); 24 System.out.println("App 正在创建..."); 25 } 26 27 @Override 28 public void onTerminate() { 29 super.onTerminate(); 30 System.out.println("App 已终止..."); 31 } 32 33 @Override 34 public void onConfigurationChanged(Configuration newConfig) { 35 super.onConfigurationChanged(newConfig); 36 System.out.println("App 配置文件已更改..."); 37 } 38 39 @Override 40 public void onLowMemory() { 41 super.onLowMemory(); 42 System.out.println("App 低内存..."); 43 } 44 45 @Override 46 public void onTrimMemory(int level) { 47 super.onTrimMemory(level); 48 System.out.println("App 内存清理中..."); 49 } 50 }
标签:
原文地址:http://www.cnblogs.com/linhongquan/p/5581996.html