@Override
 protected void onRestart() {
   Intent intent = getIntent();
   int id = intent.getIntExtra("id", -1);
   if (id == -1) {
     finish();
   } else {
     service = new ChanceService(this);
     chance = service.getById(id);
     number.setText(chance.getNumber());
     name.setText(chance.getName());
     type.setText(chance.getType());
     customer.setText(chance.getCustomer());
     date.setText(chance.getDate());
     dateStart.setText(chance.getDateStart());
     dateEnd.setText(chance.getDateEnd());
     money.setText(chance.getMoney());
     discount.setText(chance.getDiscount());
     principal.setText(chance.getPrincipal());
     ourSigner.setText(chance.getOurSigner());
     cusSigner.setText(chance.getCusSigner());
     remark.setText(chance.getRemark());
   }
   super.onRestart();
 }
 /** {@inheritDoc} */
 @Override
 protected void onRestart() {
   super.onRestart();
   {
     Debug.print(tag, "restart");
   }
 }
Esempio n. 3
1
 @Override
 protected void onRestart() {
   //		if(mIsNetConnected){
   //			openCamera();
   //		}
   super.onRestart();
 }
Esempio n. 4
1
  @Override
  protected void onRestart() {
    super.onRestart();

    Intent sorguyaGec = new Intent(Splash.this, Sorgu.class);
    startActivity(sorguyaGec);
  }
Esempio n. 5
1
 public void onRestart() {
   super.onRestart();
   if (game != null) {
     setContentView(game);
     game.running = true;
     //            game.startThread();
   }
 }
Esempio n. 6
1
 @Override
 protected void onRestart() {
   if (!Rms.getLoginDate(context).equals(Tool.getMoblieDate())) {
     //			showTimeoutDialog();
   }
   Tool.setAutoTime(context);
   super.onRestart();
 }
Esempio n. 7
1
 @Override
 protected void onRestart() {
   // TODO Auto-generated method stub
   super.onRestart();
   status_message = "Estado: onRestart";
   txt_msg.setText(status_message);
   Log.e(TAG, status_message);
 }
Esempio n. 8
1
  @Override
  protected void onRestart() {
    // TODO Auto-generated method stub
    super.onRestart();
    //		Toast.makeText(ListProfessor.this, "Restart!!!", Toast.LENGTH_SHORT)
    //				.show();

  }
 @Override
 protected void onRestart() {
   super.onRestart();
   clearData(); // 清除缓存数据
   Intent intent = getIntent();
   ContactId = intent.getLongExtra("ContactId", 1);
   init();
 }
Esempio n. 10
1
 @Override
 protected void onRestart() {
   super.onRestart();
   friendsPrimList = new ArrayList<ParseUser>();
   friendsFinList = new ArrayList<ParseUser>();
   getRelations();
   setNotifications();
 }
Esempio n. 11
1
  @Override
  protected void onRestart() {
    super.onRestart();
    setContentView(R.layout.activity_main);

    mView = (ViewMain) findViewById(R.id.SV1);
    mView.makeNewThread();
  }
 /* (non-Javadoc)
  * @see android.app.Activity#onRestart()
  */
 @Override
 protected void onRestart() {
   Log.d(LOG_PREFIX, "onRestart called");
   // restarting file download
   if (fileDownloader != null && fileDownloader.hasRemainingDownloads()) {
     Log.d(LOG_PREFIX, "Continuing downloading of photos");
     fileDownloader.execute();
   }
   super.onRestart();
 }
Esempio n. 13
1
  @Override
  protected void onRestart() {
    Log.i("MoSync", "onRestart");

    super.onRestart();

    if (theMoSyncThreadIsDead()) {
      return;
    }
  }
Esempio n. 14
1
 // when back button is hit to return to this page (restart it)
 @Override
 protected void onRestart() {
   super.onRestart();
   _selectHomeTeam = false;
   _selectAwayTeam = false; // time to select home team
   _teamSelectTitle.setText(
       getResources().getString(R.string.home_team_select_title)); // change the text of title
   _teams[0] = null; // empty array of team names to be sent along
   _teams[1] = null;
   _deleteButton.setEnabled(true); // reset the delete button
 }
  @Override
  protected void onRestart() {
    if (onRestart = false) {
      Intent intent = new Intent(GridViewActivity.this, GalleryActivity.class);
      startActivity(intent);
      finish();
      onRestart = true;
    }

    super.onRestart();
  }
Esempio n. 16
1
 @Override
 protected void onRestart() {
   super.onRestart();
   // When the user places the app in the background by pressing "home",
   // dismiss the toast bar. However, since there is no way to determine if
   // home was pressed, just dismiss any existing toast bar when restarting
   // the app.
   if (mUndoBar != null) {
     hideUndoBar(false, null);
   }
 }
 protected void onRestart() {
   super.onRestart();
   try {
     if (this.kr != null) {
       this.kr.onRestart();
     }
   } catch (Throwable e) {
     eu.m1017c("Could not forward onRestart to ad overlay:", e);
     finish();
   }
 }
  @Override
  public void onRestart() {
    super.onRestart();

    Log.i(TAG, "Entered the onRestart() method");

    // Update the appropriate count variable
    // Update the user interface
    mRestart++;
    displayCounts();
  }
Esempio n. 19
0
  /**
   * bei erneuter Ausf�hrung m�ssen nur der Request sowie der Handler zum Updaten des Textes neu
   * gestartet werden
   */
  @Override
  public void onRestart() {
    super.onRestart();

    // pr�fen ob service l�uft
    if (Abo_Service.isInstanceCreated())
      Toast.makeText(this, "XS Abo Service läuft bereits...", Toast.LENGTH_LONG).show();
    else {
      startService(new Intent(this, Abo_Service.class));
      mHandler.postDelayed(updateTextView, 500);
    }
  }
Esempio n. 20
0
  @Override
  protected void onRestart() {

    try {
      super.onRestart();

    } catch (Exception e) {
      // problem loading activity
      this.finish();
      e.printStackTrace();
    }
  }
Esempio n. 21
0
  @Override
  public void onRestart() {
    super.onRestart();

    // Emit LogCat message
    Log.i(TAG, "Entered the onRestart() method");

    // TODO:
    // Update the appropriate count variable
    // Update the user interface
    mRestart += 1;
    displayCounts();
  }
Esempio n. 22
0
 @Override
 protected void onRestart() {
   super.onRestart();
   try {
     configList = configDao.queryAll();
   } catch (java.sql.SQLException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
   adapter = new ConfigAdapter(ConfigActivity.this, R.layout.config_item, configList);
   ListView listView = (ListView) findViewById(R.id.config_list);
   listView.setAdapter(adapter);
   listView.setOnItemClickListener(
       new ConfigItemClickListener(ConfigActivity.this, configList, configDao, adapter));
 }
Esempio n. 23
0
  @Override
  protected void onRestart() {
    Elog.v(TAG, "onRestart");
    mProfilingInfo =
        Settings.Global.getInt(
            getContentResolver(), Settings.Global.WIFI_DISPLAY_LATENCY_PROFILING, 0);

    if (mProfilingInfo == 1 || mProfilingInfo == 3) {
      mCbProfiling.setChecked(true);
      setProfilingInfo(1);
    } else {
      mCbProfiling.setChecked(false);
      setProfilingInfo(0);
    }
    super.onRestart();
  }
Esempio n. 24
0
 @Override
 protected void onRestart() {
   mAdapter.notifyDataSetChanged();
   // 关闭软键盘
   InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);
   // 得到InputMethodManager的实例
   if (imm.isActive()) {
     // 如果开启
     imm.toggleSoftInput(InputMethodManager.SHOW_IMPLICIT, InputMethodManager.HIDE_NOT_ALWAYS);
     // 关闭软键盘,开启方法相同,这个方法是切换开启与关闭状态的
   }
   robotName = MyApplication.getString(HttpUtils.ROBOT_NIKE_NAME, "小黄鸭");
   title.setText(robotName);
   str = "您还记得大明湖畔的" + robotName + "吗?就是我喽," + "人称江湖百晓生,熟知段子、新闻、天气、列车、菜谱、航班、百度百科,很高兴为您服务!";
   mAdapter.changeFirstItem(str);
   super.onRestart();
 }
  @Override
  protected void onRestart() {
    super.onRestart();
    if (remotePlugin == null) {
      return;
    }

    PluginActivityCallback caller = remotePlugin.getControl();
    if (caller != null) {
      try {
        caller.callOnRestart();
        LCallbackManager.callAllOnRestart();
      } catch (Exception e) {
        processError(e);
      }
    }
  }
Esempio n. 26
0
  @Override
  protected void onRestart() {
    super.onRestart();

    if (app.reload) {
      app.locations = new ArrayList<CoupersLocation>();
      setContentView(R.layout.activity_start);
      loaded_saved_deals = 0;
      ready = false;
      city_selected = true;
      user_location = app.getUser_city();
      first_time = true;
      load_step = LOAD_LOCATIONS;
      initiateLoading();
    } else {
      if (isTaskRoot() && app.exit_next) finish();
    }
  }
Esempio n. 27
0
  @Override
  protected void onRestart() {
    // TODO Auto-generated method stub
    final myDBClass myDb = new myDBClass(this);
    myDb.getReadableDatabase();
    Boolean isThisContinue;
    isThisContinue = myDb.isCurrentContinue();
    myDb.close();
    if (isThisContinue == true) {
      schoolLevel1();
    } else {
      myDb.getWritableDatabase();
      myDb.ChangeHome(0);
      Intent intent = new Intent(SchoolLevel1.this, Main.class);
      startActivity(intent);
    }

    super.onRestart();
  }
Esempio n. 28
0
 @Override
 protected void onRestart() {
   super.onRestart();
   AppContext.context = this;
   i(AppContext.context.toString());
 }
Esempio n. 29
0
 public void onRestart() {
   gm.myDraw();
   super.onRestart();
 }
Esempio n. 30
0
 @Override
 public void onRestart() {
   Log.i(LOG_FILE_NAME, "restart");
   GeckoAppShell.putChildInForeground();
   super.onRestart();
 }