コード例 #1
0
 @Override
 public void onResume() {
   super.onResume();
   DataList.getmDetailInformations().clear();
   DataList.getmDetailLPinformation().clear();
   try {
     readDataToDisk.ReadBPData();
     readDataToDisk.ReadLPData();
   } catch (Exception e) {
     Log.e(TAG, "onCreate: " + e.toString());
   }
   mFragmentStatePagerAdapter.notifyDataSetChanged();
   TimeTool.setNowDate(new Date());
 }
コード例 #2
0
 @Override
 public void onCreate(Bundle saveInstanceBundle) {
   super.onCreate(saveInstanceBundle);
   detailInformation =
       DataList.getmDetailInformations().get(getArguments().getInt(DetailActivity.INFORMATION));
   if (detailInformation.getmDetailLPinformation().size() == 0) {
     mDetailInformation = new HaveLp();
   } else {
     mDetailInformation =
         detailInformation
             .getmDetailLPinformation()
             .get(detailInformation.getmDetailLPinformation().size() - 1);
   }
 }