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

		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();
}

  

上一篇:CPU的概念


下一篇:HDFS的Java客户端操作代码(HDFS删除文件或目录)