Java tutorial
//package com.java2s; import android.content.pm.ApplicationInfo; import android.text.TextUtils; public class Main { public static String getMetaString(ApplicationInfo appInfo, String key) { String value = ""; if (appInfo == null) return value; value = String.valueOf(appInfo.metaData.get(key)); if (TextUtils.isEmpty(value)) value = Integer.toString(appInfo.metaData.getInt(key)); return value; } }