야로레 노트

현재 어플리케이션 정보 받기 본문

프로그래밍/안드로이드

현재 어플리케이션 정보 받기

야로레 2017. 9. 19. 12:32

현재 어플리케이션 정보 받기 .

플러그인 만들때 용이 하다 . 


public static Application getApplicationUsingReflection() throws Exception {

return (Application) Class.forName("android.app.ActivityThread").getMethod("currentApplication").invoke(null,

(Object[]) null);

}



Comments