@Override protected void onResume() { Common.log(TAG, "onResume()"); super.onResume(); Common.log(TAG, "onResume(): mMessageId = " + mMessageId); DatabaseUtils.dumpCursor(mMessage); }
@Override protected void onResume() { super.onResume(); Log.i(getLocalClassName(), "onResume"); // Register current activity in onCreate and onresume CurrentActivityHolder.getInstance().setCurrentActivity(this); }
@Override protected void onResume() { super.onResume(); Intent intent = getIntent(); LatLon startPoint = null; if (intent != null) { double lat = intent.getDoubleExtra(SEARCH_LAT, 0); double lon = intent.getDoubleExtra(SEARCH_LON, 0); if (lat != 0 || lon != 0) { startPoint = new LatLon(lat, lon); } } if (startPoint == null && getParent() instanceof SearchActivity) { startPoint = ((SearchActivity) getParent()).getSearchPoint(); } if (startPoint == null) { startPoint = settings.getLastKnownMapLocation(); } LatLon pointToNavigate = settings.getPointToNavigate(); if (!Algoritms.objectEquals(pointToNavigate, this.destinationLocation) || !Algoritms.objectEquals(startPoint, this.lastKnownMapLocation)) { destinationLocation = pointToNavigate; selectedDestinationLocation = destinationLocation; lastKnownMapLocation = startPoint; searchTransport(); } }
@Override public void onResume() { super.onResume(); CatLog.d(LOGTAG, "onResume, sim id: " + mMenuInstance.mSimId); int res = mMenuInstance.handleResume(mTitleIconView, mTitleTextView, this, mProgressView); switch (res) { case StkMenuInstance.FINISH_CAUSE_FLIGHT_MODE: mMenuInstance.showTextToast( getApplicationContext(), getString(R.string.lable_on_flight_mode)); finish(); break; case StkMenuInstance.FINISH_CAUSE_NULL_MENU: mMenuInstance.showTextToast( getApplicationContext(), getString(R.string.main_menu_not_initialized)); finish(); break; case StkMenuInstance.FINISH_CAUSE_NULL_SERVICE: finish(); break; case StkMenuInstance.FINISH_CAUSE_NOT_AVAILABLE: finish(); break; } }
@Override public void onResume() { super.onResume(); // Format the most recently clicked item upon returning from info page if (ListData.indexLastClicked != 99) { int idx = ListData.indexLastClicked; RelativeLayout lastClicked = (RelativeLayout) theListView.getChildAt( ListData.indexLastClicked - theListView.getFirstVisiblePosition()); TextView v = (TextView) lastClicked.getChildAt(0); TextView w = (TextView) lastClicked.getChildAt(1); boolean completed = ListData.getCompletedList().get(ListData.indexLastClicked); if (completed) { v.setTextColor(Color.LTGRAY); w.setText("DONE!"); w.setTextColor(Color.parseColor("#73e600")); } else { v.setTextColor(Color.BLACK); w.setText("\u2705"); w.setTextColor(Color.LTGRAY); } } }
@Override protected void onResume() { super.onResume(); ParseQuery<ParseObject> query = new ParseQuery<ParseObject>("Status"); query.orderByAscending("createdAt"); query.findInBackground( new FindCallback<ParseObject>() { @Override public void done(List<ParseObject> status, ParseException e) { if (e == null) { // Success /*mStatus = status; StatusAdapter adapter = new StatusAdapter(getListView().getContext(), mStatus); setListAdapter(adapter);*/ LoadStatus(status); } else { // there was a problem. Alert user } } }); }
@Override public void onResume() { Log.d(LOG_NAME, "onResume"); super.onResume(); theFinder.init(); if (theAdapter == null) { theAdapter = new BookmarkAdapter(this); this.setListAdapter(theAdapter); } for (final BaseAgency anAgency : TheApp.theAgencies.values()) { anAgency.init(this); } theAdapter.clear(); theDB = new BookmarksDataHelper(this); ArrayList<Bookmark> theBookmarks = theDB.getAllBookmarks(); for (Bookmark aBookmark : theBookmarks) { theIntents.put(aBookmark, aBookmark.getTheIntent()); theAdapter.add(aBookmark); } startLocationSearch(); killRotateTimer(); killRefreshPredictionTimer(); setupRotateTimer(); setupRefreshPredictionTimer(); }
@Override protected void onResume() { // TODO Auto-generated method stub super.onResume(); Intent intent = new Intent(this, LocalWordService.class); bindService(intent, mConnection, Context.BIND_AUTO_CREATE); }
@Override protected void onResume() { super.onResume(); showWordList(); String text = filterText.getText().toString(); adapter.getFilter().filter(text); }
/// M: refresh listview when activity display again. @{ @Override public void onResume() { super.onResume(); getListView().invalidateViews(); /// M: If user has select one audio, we should set ok button enable mOkayButton.setEnabled(mSelectedId >= 0); }
@Override public void onResume() { super.onResume(); QoSManager.setCurrentActivity(this); QoSManager.setPowerMode(); SessionController.getSessionController().updateConnectionImage(); }
@Override protected void onResume() { super.onResume(); startMockLocationManager(); // TODO - Check NETWORK_PROVIDER for an existing location reading. // Only keep this last reading if it is fresh - less than 5 minutes old long limitAge = FIVE_MINS; Location lastLocation = mLocationManager.getLastKnownLocation(LocationManager.NETWORK_PROVIDER); if (null != lastLocation) { long age = ageInMilliseconds(lastLocation); if (age < limitAge) { mLastLocationReading = lastLocation; } else { mLastLocationReading = null; } } // TODO - register to receive location updates from NETWORK_PROVIDER if (null != mLocationManager.getProvider(LocationManager.NETWORK_PROVIDER)) { mLocationManager.requestLocationUpdates( LocationManager.NETWORK_PROVIDER, mMinTime, mMinDistance, PlaceViewActivity.this); // sHasNetwork = true; } }
@Override protected void onResume() { // TODO Auto-generated method stub super.onResume(); // loading the comments via AsyncTask new LoadComments().execute(); }
@Override protected void onResume() { super.onResume(); Intent intent = getIntent(); if (intent != null) { double lat = intent.getDoubleExtra(SEARCH_LAT, 0); double lon = intent.getDoubleExtra(SEARCH_LON, 0); if (lat != 0 || lon != 0) { location = new LatLon(lat, lon); } } if (location == null && getParent() instanceof SearchActivity) { location = ((SearchActivity) getParent()).getSearchPoint(); } if (location == null) { location = OsmandSettings.getOsmandSettings(this).getLastKnownMapLocation(); } List<HistoryEntry> historyEntries = helper.getHistoryEntries(this); getListView().removeFooterView(clearButton); if (!historyEntries.isEmpty()) { getListView().addFooterView(clearButton); } setListAdapter(new HistoryAdapter(historyEntries)); }
/** Called when the activity is resumed. */ @Override public void onResume() { super.onResume(); accountManager = AccountManager.get(getApplicationContext()); final Account[] accounts = accountManager.getAccountsByType("com.google"); this.setListAdapter( new ArrayAdapter<Account>(this, R.layout.account_chooser, accounts) { @Override public View getView(int position, View convertView, ViewGroup parent) { View row; if (convertView == null) { row = ((LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE)) .inflate(R.layout.account_chooser, null); } else { row = convertView; } TextView vw = (TextView) row.findViewById(android.R.id.text1); vw.setTextSize(Collect.getQuestionFontsize()); SharedPreferences settings = PreferenceManager.getDefaultSharedPreferences(getBaseContext()); String selected = settings.getString(PreferencesActivity.KEY_ACCOUNT, ""); if (accounts[position].name.equals(selected)) { vw.setBackgroundColor(Color.LTGRAY); } else { vw.setBackgroundColor(Color.WHITE); } vw.setText(getItem(position).name); return row; } }); }
/* Request updates at startup */ @Override protected void onResume() { Log.i(TAG, "OnResume called"); super.onResume(); // register the broadcast receiver IntentFilter intentFilter = new IntentFilter(ReferenceStore.REF_UPDATED); m_referenceSavedReceiver = new BroadcastReceiver() { @Override public void onReceive(Context context, Intent intent) { // extract our message from intent String refName = intent.getStringExtra(Reference.EXTRA_REF_NAME); // log our message value Log.i(TAG, "Received broadcast, reference was updated:" + refName); // reload the spinners to make sure all refs are in the right sequence when current gets // refreshed // if (refName.equals(Reference.CURRENT_REF_FILENAME)) // { refreshSpinners(); // } } }; // registering our receiver this.registerReceiver(m_referenceSavedReceiver, intentFilter); // the service is always started as it handles the widget updates too SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this); boolean serviceShouldBeRunning = sharedPrefs.getBoolean("ref_for_screen_off", false); if (serviceShouldBeRunning) { if (!EventWatcherService.isServiceRunning(this)) { Intent i = new Intent(this, EventWatcherService.class); this.startService(i); } } // make sure to create a valid "current" stat if none exists // or if prefs re set to auto refresh boolean bAutoRefresh = sharedPrefs.getBoolean("auto_refresh", true); if ((bAutoRefresh) || (!ReferenceStore.hasReferenceByName(Reference.CURRENT_REF_FILENAME, this))) { Intent serviceIntent = new Intent(this, WriteCurrentReferenceService.class); this.startService(serviceIntent); doRefresh(true); } else { refreshSpinners(); doRefresh(false); } // check if active monitoring is on: if yes make sure the alarm is scheduled if (sharedPrefs.getBoolean("active_mon_enabled", false)) { if (!StatsProvider.isActiveMonAlarmScheduled(this)) { StatsProvider.scheduleActiveMonAlarm(this); } } }
protected void onResume() { super.onResume(); Log.d("Resume", "Start"); // Получаем число из настроек int speed = mSettings.getInt(APP_PREFERENCES_ANIM_SPEED, 1); if (speed == 1) { center_to_right = R.anim.slide_center_to_right_short; center_to_right2 = R.anim.slide_center_to_right2_short; center_to_left = R.anim.slide_center_to_left_short; center_to_left2 = R.anim.slide_center_to_left2_short; } if (speed == 2) { center_to_right = R.anim.slide_center_to_right_medium; center_to_right2 = R.anim.slide_center_to_right2_medium; center_to_left = R.anim.slide_center_to_left_medium; center_to_left2 = R.anim.slide_center_to_left2_medium; } if (speed == 3) { center_to_right = R.anim.slide_center_to_right_long; center_to_right2 = R.anim.slide_center_to_right2_long; center_to_left = R.anim.slide_center_to_left_long; center_to_left2 = R.anim.slide_center_to_left2_long; } }
@Override protected void onResume() { super.onResume(); if (g.hasDataChanged()) { getFavoritePlaces(); } }
@Override public void onResume() { if (delegate != null) { delegate.onResume(); } super.onResume(); }
@Override protected void onResume() { super.onResume(); if (sp.getBoolean("musicCheck", true)) GameList.mp.start(); new LoadComments().execute(); }
/** * Called to resume this activity cleanly. * * <p>A connection is made to the game database. */ @Override public void onResume() { super.onResume(); // turn the database adapter back on if (db == null) { db = new AtomixDbAdapter(this).open(); } }
@Override protected void onResume() { super.onResume(); if (!Utils.checkForSdCard(this)) { return; } spriteAdapter.notifyDataSetChanged(); }
@Override protected void onResume() { super.onResume(); populateList(); array_sort = new ArrayList<String>(Arrays.asList(listview_names)); Collections.sort(array_sort); setListAdapter(new bsAdapter(this)); }
@Override public void onResume() { super.onResume(); // Load saved ToDoItems, if necessary if (mAdapter.getCount() == 0) loadItems(); }
@Override protected void onResume() { // TODO Auto-generated method stub super.onResume(); // populate the list populateList(); }
@Override protected void onResume() { super.onResume(); adjustAddSlideVisibility(); if (mState != null) { mList.setSelection(mState.getInt(SLIDE_INDEX, 0)); } }
@Override protected void onResume() { super.onResume(); if (!app.isAuthorized()) { beginAuthorization(); } else { loadTimelineIfNotLoaded(); } }
@Override protected void onResume() { super.onResume(); onContentChanged(); Route.onResume(); setSelection(Route.activeSegmentIndex()); } // onResume
@Override protected void onResume() { mDiskSyncTask.setDiskSyncListener(this); super.onResume(); if (mDiskSyncTask.getStatus() == AsyncTask.Status.FINISHED) { SyncComplete(mDiskSyncTask.getStatusMessage()); } }
@Override protected void onResume() { super.onResume(); PoiFiltersHelper poiFilters = ((OsmandApplication) getApplication()).getPoiFilters(); List<PoiFilter> filters = new ArrayList<PoiFilter>(poiFilters.getUserDefinedPoiFilters()); filters.addAll(poiFilters.getOsmDefinedPoiFilters()); filters.add(poiFilters.getNameFinderPOIFilter()); setListAdapter(new AmenityAdapter(filters)); }