Here you can find the source of getChannelNo(Context context)
public final static String getChannelNo(Context context)
//package com.java2s; //License from project: Apache License import android.content.Context; import android.content.pm.ApplicationInfo; import android.content.pm.PackageManager; public class Main { public final static String getChannelNo(Context context) { String appKey = ""; try {//from w w w . j a v a2 s . com ApplicationInfo ai = context.getPackageManager() .getApplicationInfo(context.getPackageName(), PackageManager.GET_META_DATA); if (null != ai && null != ai.metaData) { appKey = ai.metaData.getString("channel"); } } catch (Exception e) { e.printStackTrace(); } return appKey; } }