Skip to content

edgelv34/Util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Util Project

각 기능들을 사용할 수 있는 Util 형 소스들을 모아 놓은 Project

  1. 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());
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages