@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (savedInstanceState != null) { dateResult = (DateResult) savedInstanceState.getSerializable("dateResult"); } }
@Override public void onConfigurationChanged(Configuration newConfig) { super.onConfigurationChanged(newConfig); if (Utilities.deviceOnline(context)) buttonRefresh.setVisibility(View.GONE); else buttonRefresh.setVisibility(View.VISIBLE); }
@Override public void onStart() { super.onStart(); mRunning = true; refresh(); scheduleUiUpdate(); }
@Override public void onResume() { super.onResume(); if ((progressBar.getVisibility() == View.VISIBLE) && !working && onPause) { dismissProgressBar(); onPause = false; } }
@Override protected void onMessageReceived(Object message) { super.onMessageReceived(message); if (message instanceof DateResult) { setRefreshing(true); dateResult = (DateResult) message; getActivity().invalidateOptionsMenu(); getLoaderManager().restartLoader(BestLoader.ID, buildArgs(), this); } }
@Override public void onViewCreated(View view, Bundle savedInstanceState) { mEntityId = getArguments().getLong(ARG_KEY_ID); if (mEntityId == null) { printNotFoundToastMessage(); getFragmentManager().popBackStackImmediate(); } populateFields(); super.onViewCreated(view, savedInstanceState); }
@Override public View onCreateView( LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { super.onCreate(savedInstanceState); context = this.getActivity().getApplicationContext(); view = inflater.inflate(R.layout.music_video_fragment, container, false); return view; }
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { inflater.inflate(R.menu.details_menu, menu); if (!this.getArguments().getBoolean(ARG_KEY_ACTION_EDIT_ENABLED, true)) { MenuItem actionEdit = menu.findItem(R.id.action_edit); actionEdit.setVisible(false); actionEdit.setEnabled(false); } if (!this.getArguments().getBoolean(ARG_KEY_ACTION_DELETE_ENABLED, true)) { MenuItem actionDelete = menu.findItem(R.id.action_delete); actionDelete.setVisible(false); actionDelete.setEnabled(false); } super.onCreateOptionsMenu(menu, inflater); }
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { super.onCreateOptionsMenu(menu, inflater); inflater.inflate(R.menu.best, menu); MenuItem menuItem = menu.findItem(R.id.action_today); if (dateResult.isToday()) { menuItem.setTitle(R.string.today); } else { menuItem.setTitle( String.format( "%s, %s", getResources().getStringArray(R.array.months)[dateResult.month - 1], dateResult.year)); } }
@Override public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) { // add refresh currencies menu option inflater.inflate(R.menu.currencies, menu); super.onCreateOptionsMenu(menu, inflater); }
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); }
@Override public void onSaveInstanceState(Bundle outState) { super.onSaveInstanceState(outState); outState.putSerializable("dateResult", dateResult); }
@Override public void onPause() { super.onPause(); onPause = true; }
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setRetainInstance(true); }
@Override public void onAttach(Activity a) { super.onAttach(a); }
@Override public void onActivityCreated(Bundle savedInstanceState) { super.onActivityCreated(savedInstanceState); compute(); }
@Override public void onViewReady(View view, Bundle savedInstanceState, Reason reason) { super.onViewReady(view, savedInstanceState, reason); txtCountInEnglish = (TextView) view.findViewById(R.id.fragment_a_sub_countInEnglish); }
@Override public void onResume() { reloadRates(false); super.onResume(); }
@Override protected void setUpViews(View rootView) { super.setUpViews(rootView); btnDoSomeMath = (Button) rootView.findViewById(org.cobaltians.catalog.R.id.btnDoSomeMaths); btnTestAuto = (Button) rootView.findViewById(org.cobaltians.catalog.R.id.btnTestAuto); }
@Override public void onStop() { mRunning = false; super.onStop(); }