//package com.jiuqi.ui.update; // // // //import com.jqyd.uilib.R; //import com.jiuqi.util.Constants; // //import android.content.Context; //import android.content.pm.PackageManager.NameNotFoundException; //import android.util.Log; // // //public class Config { // // public static final String UPDATE_SERVER = ""; // public static final String UPDATE_APKNAME = "njt.apk"; // public static final String UPDATE_VERJSON = "ver.json"; // public static final String UPDATE_SAVENAME = "njt_save.apk"; // public static final String PACKAGE_NAME = "com.jiuqi.njt"; // // /** // * AndroidManifest.xml里面的vercode // * @param context // * @return // */ // public static int getVerCode(Context context) { // int verCode = -1; // try { // verCode = context.getPackageManager().getPackageInfo(PACKAGE_NAME, // 0).versionCode; // } catch (NameNotFoundException e) { // } // return verCode; // } // // /** // * AndroidManifest.xml里面的vername // * @param context // * @return // */ // public static String getVerName(Context context) { // String verName = ""; // try { // verName = context.getPackageManager().getPackageInfo(PACKAGE_NAME, // 0).versionName; // } catch (NameNotFoundException e) { // } // return verName; // // } // // // /** // * ver.json // * [{"verCode":"2","verName":"ver2"}] // */ // // /** // * strings.xml里面的appName // * @param context // * @return // */ // public static String getAppName(Context context) { // String verName = context.getResources().getText(R.string.appName) // .toString(); // return verName; // } //}