コード例 #1
0
 @Override
 protected void onDestroy() {
   // TODO Auto-generated method stub
   JshFragmentActivity jshactivit = (JshFragmentActivity) lam.getActivity("jsh");
   if (jshactivit != null) {
     jshactivit.onDes();
   }
   DhbFragmentActivity dhbactivit = (DhbFragmentActivity) lam.getActivity("dhb");
   if (dhbactivit != null) {
     dhbactivit.onDes();
   }
   CshFragmentActivity cshactivit = (CshFragmentActivity) lam.getActivity("csh");
   if (cshactivit != null) {
     cshactivit.onDes();
   }
   super.onDestroy();
 }
コード例 #2
0
 @Override
 protected void onResume() {
   // TODO Auto-generated method stub
   super.onResume();
   DhbFragmentActivity dhbactivit = (DhbFragmentActivity) lam.getActivity("dhb");
   JshFragmentActivity jshactivit = (JshFragmentActivity) lam.getActivity("jsh");
   CshFragmentActivity cshactivit = (CshFragmentActivity) lam.getActivity("csh");
   if (dhbactivit != null) {
     dhbactivit.reflesh();
   }
   if (jshactivit != null) {
     jshactivit.reflesh();
   }
   if (cshactivit != null) {
     cshactivit.reflesh();
   }
   getGrzl();
   if (SharepreferenceUtil.readString(this, SharepreferenceUtil.fileName, "huafei", "")
       .equals("")) {
     tv_kyhf.setText("¥0");
   } else {
     tv_kyhf.setText(
         "¥" + SharepreferenceUtil.readString(this, SharepreferenceUtil.fileName, "huafei", ""));
   }
   if (SharepreferenceUtil.readString(this, SharepreferenceUtil.fileName, "yinyuan", "")
       .equals("")) {
     tv_kyyy.setText("0个");
   } else {
     tv_kyyy.setText(
         SharepreferenceUtil.readString(this, SharepreferenceUtil.fileName, "yinyuan", "") + "个");
   }
   if (SharepreferenceUtil.readString(this, SharepreferenceUtil.fileName, "jifen", "")
       .equals("")) {
     tv_kyjf.setText("0分");
   } else {
     tv_kyjf.setText(
         SharepreferenceUtil.readString(this, SharepreferenceUtil.fileName, "jifen", "") + "分");
   }
 }