- Foreground, Background 판별
- GlobalApplication.java 이용
- 사용법
if (getApplication() instanceof GlobalApplication) {
if (((GlobalApplication)getApplication()).isForeground()) {
Logger.d("foregound");
} else {
Logger.d("backgound");
}
} else {
Logger.d("Application Name : " + getApplication() + " , packageName : " + getApplication().getPackageName());
}