@Override protected void onResume() { super.onResume(); AppMeasurementUtils appMeasurementProm = new AppMeasurementUtils(NewLimitbuyActivity.this); appMeasurementProm.getUrl( getString(R.string.appMeas_actiCenter) + ":" + getString(R.string.appMeas_groupprom), getString(R.string.appMeas_actiCenter), getString(R.string.appMeas_actiCenter) + ":" + getString(R.string.appMeas_groupprom), getString(R.string.appMeas_groupprom), "", "", "", "", "", "", "", "", getString(R.string.appMeas_myprom), "", "", "", null); Time t2 = new Time(); t2.setToNow(); boolean isorNo = t2.after(t); if (isorNo) { setData(true, true); BDebug.d("liuyang", "我也执行了"); t.set(0, 0, 24, t2.monthDay, t2.month, t2.year); } }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.limitbuy_new_list); initTitleButton(); setData(false, false); action = getIntent().getAction(); String messageId = getIntent().getStringExtra("messageId"); String titles = getIntent().getStringExtra("title"); if ("pushSertvice".equals(action) || "pushSertvice_no_sp".equals(action) || "push_PromtionActivitiesActivity".equals(action)) { BDebug.d("push_arrive", "到达抢购页" + action); PushUtils.AsynFeedbackArrivedMessage(NewLimitbuyActivity.this, messageId, titles, "3"); } t = new Time(); t.setToNow(); int year = t.year; int month = t.month; int monthday = t.monthDay; t.set(0, 0, 24, monthday, month, year); }