2010-06-17 2 views

답변

4

시도해보십시오.

String moduleName = ApplicationDescriptor 
       .currentApplicationDescriptor().getModuleName(); 
+0

굉장히 상큼한 !!! 그것은 작동합니다! 그것은 내가 찾고 있었던 바로 그 것이다! !! – Yuriy

0
ApplicationDescriptor appDesc = ApplicationDescriptor.currentApplicationDescriptor().getName(); 

당신은 대한 getName 사용해야합니다. 모듈 이름이 실제 앱 이름을 반영하지 않을 수도 있습니다. 프로젝트를 만들고 리팩터링 (이름을 변경) 한 경우 앱 이름이 변경 되었더라도 원래 제목이있는 모듈 이름을 사용할 수 있습니다.