@Override
 protected void onRestart() {
   // TODO Auto-generated method stub
   super.onRestart();
   addCallbackEventListener(EventCode.CALLBACK_APPLICATION_NOTIFICATION_TO_ACTIVITY);
   addCallbackEventListener(EventCode.CALLBACK_IN_FRAGMENT_TASK_ACTIVITY_THAT_NET_ERROR);
 }
 @Override
 protected void onRestart() {
   super.onRestart();
   Log.d(this.toString(), "onRestart: ");
   Toast.makeText(NormalActivity.this, this.toString() + " onRestart: ", Toast.LENGTH_SHORT)
       .show();
 }
Beispiel #3
0
 @Override
 protected void onRestart() {
   super.onRestart();
   if (preferences.getBoolean(Constants.RELOAD_MAIN_ACTIVITY_AFTER_RESTORE_KEY, false))
     reloadMainActivityAfterRestore();
   else {
     if (preferences.getBoolean(Constants.NOTE_UPDATED_FROM_WIDGET, false)) {
       if (fragmentManager.findFragmentByTag(Constants.FRAGMENT_NOTE) != null)
         ((NoteFragment) fragmentManager.findFragmentByTag(Constants.FRAGMENT_NOTE)).reloadNote();
       else if (fragmentManager.findFragmentByTag(Constants.FRAGMENT_LIST) != null)
         ((NoteListFragment) fragmentManager.findFragmentByTag(Constants.FRAGMENT_LIST))
             .reloadList();
       else if (fragmentManager.findFragmentByTag(Constants.FRAGMENT_TRASH_NOTE) != null)
         ((TrashNoteFragment) fragmentManager.findFragmentByTag(Constants.FRAGMENT_TRASH_NOTE))
             .reloadNote();
       preferences.edit().putBoolean(Constants.NOTE_UPDATED_FROM_WIDGET, false).apply();
     }
     if (preferences.getBoolean(Constants.NOTE_TEXT_SIZE_UPDATED, false)) {
       if (fragmentManager.findFragmentByTag(Constants.FRAGMENT_NOTE) != null)
         ((NoteFragment) fragmentManager.findFragmentByTag(Constants.FRAGMENT_NOTE))
             .updateNoteTextSize();
       preferences.edit().putBoolean(Constants.NOTE_TEXT_SIZE_UPDATED, false).apply();
     }
   }
 }
Beispiel #4
0
  @Override
  protected void onRestart() {
    super.onRestart();
    new Thread() {
      @Override
      public void run() {

        if (selectedCategory != null) {
          if (selectedCategory.equalsIgnoreCase("all notes")) {
            mNoteList = mDbHelper.queryAll();
          } else {
            mNoteList = mDbHelper.queryNoteByCategory(selectedCategory);
          }
        } else {
          mNoteList = mDbHelper.queryAll();
        }

        sortOrder();

        mCategoryList = mDbHelper.queryAllCategory();
        Collections.sort(mCategoryList, String.CASE_INSENSITIVE_ORDER);
        runOnUiThread(
            new Runnable() {
              @Override
              public void run() {
                mAdapter.notifyDataSetChanged();
                mCategoryAdapter.notifyDataSetChanged();
              }
            });
      }
    }.start();

    mSearchView.setQuery("", true);
  }
 @Override
 protected void onRestart() {
   super.onRestart();
   if (timeIntentSecondLeft > 0) {
     startCountdownTimer();
   }
 }
Beispiel #6
0
  @Override
  protected void onRestart() {
    super.onRestart();

    MainActivityFragment fragment =
        (MainActivityFragment) getSupportFragmentManager().findFragmentByTag(MAIN_FRAGMENT);
    fragment.disableProgressBar();
  }
 /**
  * Hook method called when user restarts a stopped activity. Is followed by a call to onStart()
  * and onResume().
  */
 @Override
 protected void onRestart() {
   // Always call super class for necessary
   // initialization/implementation and then log which lifecycle
   // hook method is being called.
   super.onRestart();
   Log.d(TAG, "onRestart() - the activity is about to be restarted()");
 }
  /** When we restart the list view, start like new */
  @Override
  protected void onRestart() {
    super.onRestart();
    Log.d("tag", "on restart");
    //        finish();
    //        startActivity(getIntent());

  }
  @Override
  public void onRestart() {
    super.onRestart();
    friendsList = preference.getFriendsInfos(this);

    adapter = new FriendListAdapter(this, friendsList);
    ListView listView = (ListView) findViewById(R.id.listView);
    listView.setAdapter(adapter);
  }
  @Override
  protected void onRestart() {
    super.onRestart();
    // System.out.println("is in service ? "+inService);

    loadingAnimation.start();
    // --restart requesting
    scheduleAttentionQuery(0);
  }
 @Override
 public void onRestart() {
   super.onRestart();
   fontPath = BibleUtils.getFontPath(this);
   if (!ObjectUtils.isIdentical(
       fontPath, mAdapter.getData(getCurrentPosition()).getString(FONT_PATH))) {
     refresh();
   }
 }
Beispiel #12
0
 /**
  * Since ownCloud {@link Account}s can be managed from the system setting menu, the existence of
  * the {@link Account} associated to the instance must be checked every time it is restarted.
  */
 @Override
 protected void onRestart() {
   Log_OC.v(TAG, "onRestart() start");
   super.onRestart();
   boolean validAccount = (mAccount != null && AccountUtils.exists(mAccount, this));
   if (!validAccount) {
     swapToDefaultAccount();
   }
   Log_OC.v(TAG, "onRestart() end");
 }
 @Override
 protected void onRestart() {
   super.onRestart();
   if (onPauseTime != "")
     Toast.makeText(
             getApplicationContext(),
             getString(R.string.last_connection) + ": " + onPauseTime,
             Toast.LENGTH_LONG)
         .show();
 }
Beispiel #14
0
  @Override
  public void onRestart() {
    super.onRestart(); // always call the superclass

    // do something
    // print in console
    Log.i(TAG, "Restarted the activity");
    // update teller en update user interface
    tellerRestart++;
    // displayCounts();
  }
Beispiel #15
0
 @Override
 protected void onRestart() {
   super.onRestart();
   new Thread() {
     @Override
     public void run() {
       manage = new WordManage(MainActivity.this);
       wordhandler.sendEmptyMessage(0);
     }
   }.start();
 }
  @Override
  protected void onRestart() {
    super.onRestart();
    // Load all groups and events to be available for offer and search rides
    Group.loadGroups(this);
    Event.loadEvents(this);

    // refresh rides
    activityFragment.sendGetRidesRequest(GETUSER_RELAVENT_RIDE_URL);

    if (!mGoogleApiClient.isConnected()) {
      mGoogleApiClient.connect();
    }
  }
 @Override
 protected void onRestart() {
   super.onRestart();
   Profile p = Profile.getCurrentProfile();
   if (p != null) {
     Log.d("bienvenido", p.getName());
     Intent ventanitaRuta = new Intent(this, RutasMenu.class);
     startActivity(ventanitaRuta);
   }
   String status = manager.getPreferences(MainActivity.this, "status");
   Log.d("status", status);
   if (status.equals("1")) {
     Intent i = new Intent(MainActivity.this, RutasMenu.class);
     startActivity(i);
   }
 }
  protected void onRestart() {

    restarted = true;
    restarted_zoom = true;

    // if the top toolbar is not showing then neither are showing and the only restart
    // is from an app switch or resume from sleep, therefore get content directly

    if (glview.toolbars_hidden) {
      new GetContent().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);

    } else {

      rid_arr_loc = UtilityFavorites.SetupFavMenu(MyApplication.rid_fav, rid1, pref_token_location);
      dataAdapter = new ArrayAdapter<>(this, android.R.layout.simple_spinner_item, rid_arr_loc);
      dataAdapter.setDropDownViewResource(MyApplication.spinner_layout);
      spinner1.setAdapter(dataAdapter);
    }

    super.onRestart();
  }
Beispiel #19
0
 @Override
 protected void onRestart() {
   super.onRestart();
   Log.d(TAG, "ArticleActivity OnRestart");
 }
 @Override
 protected void onRestart() {
   super.onRestart();
   refreshLayout();
 }
 protected void onRestart() {
   Log.i(TAG, "[ACTIVITY] onRestart");
   super.onRestart();
   startActivity(getIntent());
 }
 @Override
 protected void onRestart() {
   System.out.println("MainActivity-onRestart");
   super.onRestart();
 }
 @Override
 protected void onRestart() {
   super.onRestart();
   droid4mizer.onRestart();
 }
Beispiel #24
0
 protected void onRestart() {
   super.onRestart();
   Log.d(TAG, "onRestart");
 }
Beispiel #25
0
 @Override
 protected void onRestart() {
   super.onRestart();
   mPlayerStatusTask = new PlayerStatusTask();
 }
 @Override
 protected void onRestart() {
   super.onRestart();
   Log.i("Tag", "2onrestart");
 }
 @Override
 protected void onRestart() {
   adapter.notifyDataSetChanged();
   super.onRestart();
 }
Beispiel #28
0
 @Override
 protected void onRestart() {
   super.onRestart();
   Log.d(TAG, "MainActivity: onRestart()");
 }
 @Override
 public void onRestart() {
   super.onRestart();
   setScore();
 }
Beispiel #30
0
 @Override
 protected void onRestart() {
   super.onRestart();
   Toast.makeText(this, "onRestart", Toast.LENGTH_SHORT).show();
 }