@Override protected void onCreate(Bundle savedInstanceState) { // TODO Auto-generated method stub super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.import_sysmes_processbar); requestcode = getIntent().getIntExtra(Constant.REQUEST_CODE, -1); processbar = (SeekBar) findViewById(R.id.my_progressbar1); processtip = (TextView) findViewById(R.id.my_progressbar_tip); addperson = getIntent().getStringArrayListExtra(Constant.IMPORT_OR_DEL_NUMS); mcontext = this.getBaseContext(); if (getIntent().getStringExtra(Constant.IS_IMPORT_NUMS).length() > 0) { tip = "正在导入联系人"; new ImportSysmes().execute(); } else { tip = "正在导出联系人"; findViewById(R.id.gd_iv_titlebar_icon) .setBackgroundResource(R.drawable.gd_dialog_private_contacts_icon_out); new ExportToSysmes().execute(); } }
@Override protected void onDestroy() { sp.update(Constant.HUIZHI_STYLE, 0); unregisterReceiver(rcrReceiver); unregisterReceiver(sendMsgReceiver); if (all != null) { all.clear(); } if (reals != null) { reals.clear(); } madapter.clearCacheNum(); super.onDestroy(); }
@Override protected void onResume() { Log.e("onResume", "onResume"); // tv_tab1.setText("回执报告"); if (pop != null) { pop.dismiss(); pop = null; } // queryData(); if (binddatatool != null) { binddatatool.clearPortraitMaps(); } madapter.clearCacheNum(); all_reals.clear(); showsel = false; selitem.clear(); click_type = 0; // ll_maincontent.removeAllViews(); if (firstIn && (!getService(ICopyOldData.class).isImportFinish())) { getService(IEventRouter.class).registerEventListener(ImporDataOKEvent.class, listener); } if (click_style) { // if (gongnengline == null) { // gongnengline = getSecondView(); // } // huizhi_gongnen_div.setVisibility(View.VISIBLE); // huizhi_listview_div.setVisibility(View.GONE); // huizhi_empty_text.setVisibility(View.GONE); } else { refetchData(); } Log.i("click_type", click_type + ""); firstIn = false; super.onResume(); }
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); setContentView(R.layout.simiren_setting_dialog); iv_kaiguan = (ImageView) findViewById(R.id.iv_simi_kaiguan); tv_update = (TextView) findViewById(R.id.tv_update); iv_kaiguan.setOnClickListener(this); tv_update.setOnClickListener(this); try { this.lMRFlag = getService(IPrivateSMService.class).isRingBellWhenReceiving() == false; if (this.lMRFlag) { iv_kaiguan.setBackgroundResource(R.drawable.close); } else { iv_kaiguan.setBackgroundResource(R.drawable.open); } } catch (Throwable t) { } }
@Override protected void onStop() { Log.e("onStop", "onStop"); if (popupWindow != null) { popupWindow.dismiss(); popupWindow = null; iv_title_sanjiao.setBackgroundResource(R.drawable.titelbar_sanjiao); } if (pop != null) { pop.dismiss(); pop = null; // for (DCMyViewGroupHuiZhiBaoGao p : this.items) { // p.setCheck("1"); // } } sp.update("menu_open", false); getService(IEventRouter.class).unregisterEventListener(ImporDataOKEvent.class, listener); super.onStop(); }
@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { switch (resultCode) { case Constant.STAGE_MODE: int stage_mode_value = Integer.parseInt(sp.get(Constant.STAGE_MODE_VALUE, "2")); if (stage_mode_value == 2) { updateMode(stage_mode_value, "提醒模式"); } else { updateMode(stage_mode_value, "全开模式"); } break; case Constant.DELETE_RECORD: Enumeration<Long> keys = selitem.keys(); if (keys.hasMoreElements()) { do { BodyBeanHuiZhi bean = selitem.get(keys.nextElement()); hdao.deleteAll(bean.tosomebody, bean.address); } while (keys.hasMoreElements()); } selitem.clear(); refetchData(); // for (DeleteVO vo : dls) { // // hdao.deleteSMSAccordingtoNumberAndMonth(vo.telnumber, // vo.month); // } break; } super.onActivityResult(requestCode, resultCode, data); }
@Override protected void onResume() { // TODO Auto-generated method stub super.onResume(); }
@Override protected void onCreate(Bundle arg0) { super.onCreate(arg0); setContentView(R.layout.huizhi_mainpage22); ((com.wxxr.callhelper.qg.widget.BottomTabBar) findViewById(R.id.home_bottom_tabbar)) .setActivtiy(this, 0); sp = NSharedPreferences.getInstance(getApplicationContext()); sp.get(Constant.HUIZHI_STYLE, 0); sp.get("menu_open", false); sp.update("menu_open", false); hdao = HuiZhiBaoGaoDao.getInstance(this); array_mainlist_main = new ArrayList<ArrayList<BodyBeanHuiZhi>>(); all_reals = new ArrayList<BodyBeanHuiZhi>(); // all = hdao.queryAllHuiZhi(); // all_reals = getRealContent(all); // queryData(); // LinearLayout ll = (LinearLayout) // findViewById(R.id.ll_huizhi_main_bg); // Bitmap readBitmap = Tools.readBitmap(this, // R.drawable.main_bg_communication); // BitmapDrawable bitmapDrawable = new BitmapDrawable(readBitmap); // ll.setBackgroundDrawable(bitmapDrawable); ll_main_total = (RelativeLayout) findViewById(R.id.ll_huizhi_main_bg); infater = LayoutInflater.from(this); metric = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(metric); binddatatool = DCMyViewGroupHuiZhiBaoGao.getInstance(this, metric, null, 0); // ll_maincontent = (LinearLayout) findViewById(R.id.ll_main_content); madapter = new HuizhiAdapter(); findView(); Intent intent = getIntent(); String flag = intent.getStringExtra("shouye"); // ll_maincontent.removeAllViews(); // huizhi_empty_text.setText(str_all); // if (flag == null) { // View view = getFirstView(all_reals, str_all, click_type); // // if (view != null) { // // ll_maincontent.addView(view); // // } // // } else if (flag.equals("shouye")) { // View view = getFirstView(all_reals, str_all, click_type); // // if (view != null) { // // ll_maincontent.addView(getFirstView(all_reals, str_all, // // click_type)); // // } // // click_style = false; // // // rl_tab1.setBackgroundResource(R.drawable.title_qian_xuanzhong); // // rl_tab2.setBackgroundDrawable(null); // // } else { // // ll_maincontent.addView(getSecondView()); // // } IntentFilter testAction = new IntentFilter("com.wxxr.viewgroup.refreshhuizhiall"); rcrReceiver = new RefreshContentReceiverHZ(); registerReceiver(rcrReceiver, testAction); }