@Override
 protected void onResume() {
   super.onResume();
   MobclickAgent.onPageStart(
       "添加好友页"); // 统计页面(仅有Activity的应用中SDK自动调用,不需要单独写。"SplashScreen"为页面名称,可自定义)
   MobclickAgent.onResume(this); // 统计时长
 }
 @Override
 protected void onResume() {
   // TODO Auto-generated method stub
   super.onResume();
   MobclickAgent.onPageStart(this.getClass().getName());
   MobclickAgent.onResume(this);
 }
Пример #3
0
 @Override
 protected void onResume() {
   discussBtn.setOnClickListener(this);
   queryCommentPaginationList();
   super.onResume();
   MobclickAgent.onResume(this);
 }
  protected void onResume() {
    logger.v("onResume() ---> Enter");
    super.onResume();
    MobclickAgent.onResume(this);
    this.mViewInterface.addListner();

    ((SongListView) mViewInterface).getDataFromURL();
    // 返回按钮
    mTitleBar.setLeftBtnOnlickListner(
        new View.OnClickListener() {
          public void onClick(View view) {
            if (mIsFromPushService) {
              Intent intent =
                  new Intent(
                      MusicOnlineMusicColumnDetailActivity.this, MobileMusicMainActivity.class);
              intent.putExtra("startFromNotification", true);
              startActivity(intent);
              finish();
            } else {
              finish();
            }
          }
        });
    if (SongListView.mListButtonClickListener != null)
      SongListView.mListButtonClickListener.doUnCompleteTask();
    logger.v("onResume() ---> Exit");
    return;
  }
Пример #5
0
 @Override
 protected void onResume() {
   // TODO Auto-generated method stub
   super.onResume();
   MobclickAgent.onResume(this); // BY贺思明 2012-7-24
   startSensor();
 }
 /* (non-Javadoc)
  * @see android.app.Activity#onResume()
  */
 @Override
 protected void onResume() {
   // TODO Auto-generated method stub
   super.onResume();
   /** 此处调用基本统计代码 */
   MobclickAgent.onResume(this);
 }
 @Override
 protected void onResume() {
   topLayout.setVisibility(View.GONE);
   initReceiver();
   super.onResume();
   MobclickAgent.onResume(this);
 }
Пример #8
0
 @Override
 public void onResume() {
   super.onResume();
   // 在activity执行onResume时执行mMapView. onResume (),实现地图生命周期管理
   mMapView.onResume();
   MobclickAgent.onResume(this);
 }
Пример #9
0
  public void onResume() {
    super.onResume();
    // umeng统计
    MobclickAgent.onResume(this);
    //	if ( !GezitechApplication.isActive ) {
    // app 从后台唤醒,进入前台
    //   GezitechApplication.isActive = true;
    // 判断xmpp是否链接
    User user = GezitechService.getInstance().getCurrentLoginUser(this);
    if (user != null) {
      if (GezitechApplication.connection == null
          || (!GezitechApplication.connection.isConnected())
          || (XmppConnectionManager.getInstance().getConnection() != null
              && !XmppConnectionManager.getInstance().getConnection().isConnected())) {
        XmppConnectionManager.getInstance().login();
      }
    }
    /*//是否重新启动app
    if( GezitechApplication.runtime>0 && (System.currentTimeMillis() - GezitechApplication.runtime) > 30*60*1000  ){
    	Intent intent = new Intent(this, WelcomeActivity.class);
    	startActivity( intent );
    	GezitechService.getInstance().exitApp( this );
    }*/
    //	}
    // 过半个小时定位一次
    long currTime = System.currentTimeMillis();
    long LBSCtime = GezitechApplication.systemSp.getLong("LBSCtime", currTime);
    if (AppUtils.isAppOnForeground() && (currTime - LBSCtime) > 35 * 60) {

      GezitechService.getInstance().longitude();
    }
    getNewNearByCount();
  }
	@Override
	protected void onResume()
	{
		super.onResume();
		//友盟统计
		MobclickAgent.onResume( this );
	}
Пример #11
0
 @Override
 protected void onResume() {
   super.onResume();
   cutscreen = (Button) findViewById(R.id.cutscreen);
   cutscreen.setSoundEffectsEnabled(false);
   MobclickAgent.onResume(this);
 }
 @Override
 protected void onResume() {
   super.onResume();
   if (EcmobileManager.getUmengKey(this) != null) {
     MobclickAgent.onPageStart("CategoryList");
     MobclickAgent.onResume(this, EcmobileManager.getUmengKey(this), "");
   }
 }
 // 变成竖屏
 protected void onResume() {
   /** * 设置为横屏 */
   if (getRequestedOrientation() != ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT) {
     setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT);
   }
   super.onResume();
   MobclickAgent.onResume(this);
 }
  @Override
  protected void onResume() {
    super.onResume();
    Log.d("SettingCfgActivity", "onResume");

    MobclickAgent.onPageStart("setting");
    MobclickAgent.onResume(this);
  }
Пример #15
0
 @Override
 public void onResume() {
   super.onResume();
   MobclickAgent.onResume(this);
   String uid = LoginManage.getInstance().getStudent().getUid();
   if (uid != null) {
     MyShiKeInfo(uid);
   }
 }
 @Override
 protected void onResume() {
   super.onResume();
   MobclickAgent.onPageStart(mPageName);
   MobclickAgent.onResume(this);
   initWidget();
   initData();
   loadData();
 }
Пример #17
0
 @Override
 protected void onResume() {
   super.onResume();
   Const.Application.setCurrentActivity(this);
   Const.Application.setActivityOnStart(this);
   MobclickAgent.onPageStart(this.getClass().getSimpleName());
   MobclickAgent.onResume(this);
   //		DebugLogger.write("onResume " + this);
 }
Пример #18
0
 @Override
 protected void onResume() {
   // TODO Auto-generated method stub
   super.onResume();
   // 初始化gallery的索引值
   AddNoteActivity.GALLERY_INDEX = 0;
   // 开启友盟统计
   MobclickAgent.onResume(this);
 }
Пример #19
0
 @Override
 protected void onResume() {
   // TODO Auto-generated method stub
   super.onResume();
   if (isRefresh) {
     cancleTrackError000000();
   }
   MobclickAgent.onResume(this); // BY贺思明 2012-7-24
 }
Пример #20
0
 @Override
 public void onResume() {
   super.onResume();
   dataStruct = new ArrayList();
   Tab3Page1Adapter = new Tab3Page1ListAdapter();
   ItemsListView.setAdapter(Tab3Page1Adapter);
   CheckSaveData();
   MobclickAgent.onResume(this);
 }
Пример #21
0
 @Override
 protected void onResume() {
   super.onResume();
   MobclickAgent.onResume(this); // BY贺思明 2012-7-24
   if (isnoticefresh) {
     noticeNet();
   } else {
     isnoticefresh = true;
   }
 }
Пример #22
0
  @Override
  protected void onResume() {
    super.onResume();

    if (GoodsItemManager.instance().getGoodsItems().size() == 0) {
      refreshGoodsItems();
    }

    MobclickAgent.onResume(this);
    // refreshGoodsItems();
  }
Пример #23
0
 @Override
 public void onResume() {
   super.onResume();
   MobclickAgent.onResume(this.getActivity());
   if (!isThreadReady) {
     isThreadReady = true;
     waitMessage = new waitNewMessage(mHandler);
     waitMessage.start();
   }
   loadData();
 }
Пример #24
0
 public void onResume() {
   mApplication.onResumeMapActivity();
   mMxLocationOverlay.enableMyLocation();
   mMxLocationOverlay.enableCompass();
   mCaricoOverlay.setData(mApplication.getCarPosition());
   // if (mMovingOverlay != null) {
   // mMovingOverlay.onResume();
   // }
   super.onResume();
   MobclickAgent.onResume(this);
 }
Пример #25
0
 protected void onResume() {
   // TODO Auto-generated method stub
   super.onResume();
   MobclickAgent.onResume(this); // BY贺思明 2012-7-24
   if (isRefresh) {
     viewInfos[topIndex][lottypeIndex].newPage = 0;
     viewInfos[topIndex][lottypeIndex].allPage = 0;
     viewInfos[topIndex][lottypeIndex].listdata.clear();
     initViewPageInfo();
     ifRefreshPage();
   }
 }
Пример #26
0
  @Override
  protected void onResume() {
    super.onResume();
    MobclickAgent.onResume(this);
    if (loginStatus()) {
      try {
        final LoginUser user = getHelper().getUser();
        if (user == null) {
          return;
        }
        if (Util.fmtDate
            .parse(ac.cs.getLoginTime(user.getId()))
            .before(Util.fmtDate.parse(Util.fmtDate.format(new Date())))) {

          ac.finalHttp.post(
              URL.EVERYDAY_LOGIN,
              getAjaxParams(),
              new MyJsonHttpResponseHandler(this) {
                @Override
                public void onSuccessRetCode(JSONObject jo) throws Throwable {
                  jo = new JSONObject(jo.getString(URL.RESPONSE));
                  ac.cs.setLoginTime(user.getId(), Util.fmtDate.format(new Date()));
                  Intent intent = new Intent(DogCoinActivity.TAG);
                  intent.putExtra("coin", jo.getString("coin"));
                  sendBroadcast(intent);
                  if ("1".equals(jo.getString("result"))) {
                    new Handler()
                        .postDelayed(
                            new Runnable() {
                              @Override
                              public void run() {
                                LayoutInflater inflater = LayoutInflater.from(BaseActivity.this);
                                View view = inflater.inflate(R.layout.login_remind, null);
                                Toast toast = new Toast(BaseActivity.this);
                                toast.setGravity(Gravity.FILL, 0, 0);
                                toast.setDuration(Toast.LENGTH_SHORT);
                                toast.setView(view);
                                toast.show();
                              }
                            },
                            1000);
                  }
                }

                @Override
                public void onFailure() {}
              });
        }
      } catch (ParseException e) {
        e.printStackTrace();
      }
    }
  }
Пример #27
0
  @Override
  protected void onResume() {
    super.onResume();
    // onresume时,取消notification显示
    HXSDKHelper.getInstance().getNotifier().reset();

    // umeng
    MobclickAgent.onResume(this);

    ExitApplication.getInstance().addActivity(this);
    //	     Define.setTitle(this);
    mSettingManager = new SkinSettingManager(this);
    mSettingManager.initSkins();
  }
Пример #28
0
 @Override
 protected void onResume() {
   super.onResume();
   MobclickAgent.onResume(this); // BY贺思明 2012-7-24
   initPojo();
   if (sessionid != null && !sessionid.equals("")) {
     getusermessage();
     usercentertop.setVisibility(View.VISIBLE);
     usercenterrigist_no.setVisibility(View.GONE);
   } else {
     usercentertop.setVisibility(View.INVISIBLE);
     usercenterrigist_no.setVisibility(View.VISIBLE);
   }
 }
Пример #29
0
	// teapotXu_20130304: add start
	// set a flag that indicates whether the ThemeSelectIcon launched the
	// ThemeBox or Launcher app.
	@Override
	protected void onResume() {
		super.onResume();
		MobclickAgent.onResume(this);
		if (b_theme_icon_start_launcher == true) {
			String theme_icon_pkgName = getIntent().getStringExtra(
					"FROM_PACKAGE");


			// start the launcher directly
			ThemeService sv = new ThemeService(this);

			sv.applyTheme(sv.queryComponent(theme_icon_pkgName));
			sendBroadcast(new Intent(StaticClass.ACTION_DEFAULT_THEME_CHANGED));
			ActivityManager.KillActivity();
		}
	}
  @TargetApi(Build.VERSION_CODES.HONEYCOMB)
  @Override
  protected void onResume() {
    super.onResume();
    MobclickAgent.onResume(this);
    AppService.onNewsResume();

    if (mWakeLock == null)
      mWakeLock =
          ((PowerManager) getSystemService(Context.POWER_SERVICE))
              .newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, getClass().getSimpleName());
    try {
      if (!mWakeLock.isHeld()) mWakeLock.acquire();
    } catch (Exception e) {
      Trace.d(tag, e.getMessage());
    }
  }