private void initData() {
    addrId = getIntent().getStringExtra(GlobalAction.ProfileAction.EXTRA_KEY_ADDR_ID);
    Logger.e(TAG, "AddrId = " + addrId);

    updateDataStatus(DataStatus.LOADING);
    mContractLogic.getContractAddrInfo(addrId);
  }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   Logger.e(TAG, "onCreate");
   if (savedInstanceState != null) {
     mModelInfo =
         (ContractModelInfo)
             savedInstanceState.getSerializable(
                 GlobalAction.ContractAction.EXTRA_KEY_CONTRACT_INFO);
   }
 }
Beispiel #3
0
    private static boolean forceDeleteFile(File file) {
      boolean result = false;
      int tryCount = 0;
      while ((!result) && (tryCount++ < 10)) {
        result = file.delete();
        if (result) continue;
        try {
          synchronized (file) {
            file.wait(200L);
          }
        } catch (InterruptedException e) {
          Logger.e("Logger", "forceDeleteFile:", e);
        }
      }

      return result;
    }