public static String getAppName(Context mContext) {
ApplicationInfo applicationInfo = mContext.getApplicationInfo();
int stringId = applicationInfo.labelRes;
return stringId == 0 ? applicationInfo.nonLocalizedLabel.toString() : mContext.getString(stringId);
}
'android' 카테고리의 다른 글
Base64Encode, Decode (0) | 2019.04.08 |
---|---|
SharedPreferences (0) | 2019.04.08 |
버전 정보 가져오기 (0) | 2019.04.08 |
JSON String 파싱하기 (0) | 2019.03.20 |
안드로이드 UI 라이브러리 모음 (0) | 2019.03.05 |