Android 获得AndroidManifest文件里自定义的meta标签内容

时间:2024-05-13 19:35:20
		try {
ApplicationInfo appInfo= this.getPackageManager().getApplicationInfo(getPackageName(),PackageManager.GET_META_DATA);
if(appInfo.metaData.containsKey("APPTYPE"))
{
MobclickAgent.setScenarioType(this, MobclickAgent.EScenarioType.E_UM_NORMAL);
Log.e("Unity","MobclickAgent.setScenarioType(this, MobclickAgent.EScenarioType.E_UM_NORMAL)");
}
} catch (NameNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}