| | |
| | | import android.content.res.Configuration; |
| | | import android.os.Build; |
| | | import android.os.LocaleList; |
| | | import android.os.Process; |
| | | import android.os.SystemClock; |
| | | import android.text.TextUtils; |
| | | import android.util.Log; |
| | |
| | | |
| | | public class HDLApp extends Application { |
| | | |
| | | final String TAG=HDLApp.class.getName(); |
| | | //控制打印 Debug模式打印 |
| | | private Boolean isLogEnabled = true; |
| | | //三方sdk初始化标识 |
| | |
| | | public void onCreate() { |
| | | super.onCreate(); |
| | | // 获取当前进程的PID |
| | | Log.d("进程===", android.os.Process.myPid() + ""); |
| | | String processMessage= "进程ID:"+Process.myPid()+" 进程名:"+RuningAcitvityUtil.getAppName(getBaseContext()); |
| | | Log.d(TAG, processMessage); |
| | | if (RuningAcitvityUtil.getAppName(getBaseContext()).contains(":")) { |
| | | //非原生进程,用初始化后面的 |
| | | return; |
| | | } |
| | | mHDLApp = this; |
| | | SharedPreUtils.init(this); |
| | | getAppLanguage(); |