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

  

posted @ 2016-12-08 14:05  MrBlue  阅读(1028)  评论(0编辑  收藏  举报