Java Code Examples for com.umeng.analytics.MobclickAgent#getConfigParams()
The following examples show how to use
com.umeng.analytics.MobclickAgent#getConfigParams() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MobclickAgentProxy.java From android-project-wo2b with Apache License 2.0 | 5 votes |
public static String getConfigParams(Context arg0, String arg1) { if (!DEBUG) { return MobclickAgent.getConfigParams(arg0, arg1); } else { Log.w(TAG, "Not support without release mode."); return null; } }
Example 2
Source File: Main.java From iSCAU-Android with GNU General Public License v3.0 | 5 votes |
@UiThread(delay = 4000) void showNotification(){ String notification = MobclickAgent.getConfigParams(this, "notification"); if(isConfigAble(notification)){ // 今天显示过就不显示了 if(!config.lastSeeNotificationDate().get().equals(dateUtil.getCurrentDateString())) Notification_.intent(this).notification(notification).start(); } }
Example 3
Source File: SheJiaoMaoApplication.java From YiBo with Apache License 2.0 | 5 votes |
private void initGlobalVars() { if (Logger.isDebug()) { Log.d(TAG, "initGlobalVars Start : " + System.currentTimeMillis() / 1000); } GlobalVars.LOCALE = changeLocale(this); GlobalVars.NET_OPERATOR = NetUtil.getNetworkOperator(this); GlobalVars.NET_TYPE = NetUtil.getCurrentNetType(this); GlobalVars.IS_SHOW_HEAD = isShowHead(); GlobalVars.IS_SHOW_THUMBNAIL = isShowThumbnail(); GlobalVars.UPDATE_COUNT = getUpdateCount(); GlobalVars.IMAGE_DOWNLOAD_QUALITY = getImageDownloadQuality(); GlobalVars.IS_ENABLE_GESTURE = isGestureEnabled(); GlobalVars.FONT_SIZE_HOME_BLOG = getFontSize(); GlobalVars.FONT_SIZE_HOME_RETWEET = getFontSize(); GlobalVars.IS_DETECT_IAMGE_INFO = isDetectImageInfo(); GlobalVars.IS_AUTO_LOAD_COMMENTS = isAutoLoadComments(); GlobalVars.reloadAccounts(this); if (GlobalVars.NET_TYPE == NetType.WIFI) { GlobalVars.NET_OPERATOR = NetworkOperator.UNKOWN; } String isObeySinaAgreement = MobclickAgent.getConfigParams(this, "IS_OBEY_SINA_AGREEMENT"); String isMobileNetUpdateVersion = MobclickAgent.getConfigParams(this, "IS_MOBILE_NET_UPDATE_VERSION"); GlobalVars.IS_OBEY_SINA_AGREEMENT = Boolean.parseBoolean(isObeySinaAgreement); GlobalVars.IS_MOBILE_NET_UPDATE_VERSION = Boolean.parseBoolean(isMobileNetUpdateVersion); if (Logger.isDebug()) Log.d(TAG, "IS_OBEY_SINA_AGREEMENT=" + isObeySinaAgreement); if (Logger.isDebug()) { Log.d(TAG, "initGlobalVars Finish : " + System.currentTimeMillis() / 1000); } }
Example 4
Source File: LessonsLoginActivity.java From zhangshangwuda with Apache License 2.0 | 4 votes |
@Override public void run() { // TODO Auto-generated method stub Message msg = LogInHandler.obtainMessage(); String MasterCooike = MasterCookie; String StateString; StateString = LogIn(MasterCooike); if (StateString == null) { msg.arg1 = 3; } else if (StateString.indexOf("密码") > 0) { msg.arg1 = 1; } else if (StateString.indexOf("验证码") > 0) { msg.arg1 = 2; } else { msg.arg1 = 0; List<Map<String, String>> list = new ArrayList<Map<String, String>>(); String TermFirstDay = MobclickAgent.getConfigParams( LessonsLoginActivity.this, "term_firstday"); if (TermFirstDay != "") LessonsSharedPreferencesTool.setTermFirstDay( LessonsLoginActivity.this, TermFirstDay); String LessonsURL = MobclickAgent.getConfigParams( LessonsLoginActivity.this, "lessons_url_2"); String ServantCookie = "studentid=" + Account + ";" + MasterCooike + ";" + "studentid=" + Account; // System.out.println(LessonsURL); // LessonsURL="http://202.114.74.199/stu/query_stu_lesson.jsp?year=2012&term=%CF%C2&submit=%CF%D4+%CA%BE"; String Html_lessons = getLessonsHtml(LessonsURL, ServantCookie); list = LessonsTool.getLessonsList(getApplicationContext(), Html_lessons); int size = list.size(); if (size != 0) LessonsDb.getInstance(LessonsLoginActivity.this) .deleteAll(); Lessons tlessons = new Lessons(); for (int i = 0; i <= size - 1; ++i) { Map<String, String> tmap = new HashMap<String, String>(); tmap = list.get(i); tlessons.setId(tmap.get("id")); tlessons.setName(tmap.get("name")); tlessons.setDay(tmap.get("day")); tlessons.setSte(tmap.get("ste")); tlessons.setMjz(tmap.get("mjz")); tlessons.setTime(tmap.get("time")); tlessons.setPlace(tmap.get("place")); tlessons.setTeacher(tmap.get("teacher")); tlessons.setOther(tmap.get("other")); LessonsDb.getInstance(LessonsLoginActivity.this).insert( tlessons); } } LogInHandler.sendMessage(msg); }