Codota Logo
PreferenceFragment.onAttach
Code IndexAdd Codota to your IDE (free)

How to use
onAttach
method
in
android.preference.PreferenceFragment

Best Java code snippets using android.preference.PreferenceFragment.onAttach (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: trello/RxLifecycle

@Override
@CallSuper
public void onAttach(android.app.Activity activity) {
  super.onAttach(activity);
  lifecycleSubject.onNext(FragmentEvent.ATTACH);
}
origin: ukanth/afwall

@Override
public void onAttach(Context context) {
  super.onAttach(context);
  ctx = context;
}
origin: ukanth/afwall

@Override
public void onAttach(Context context) {
  super.onAttach(context);
  ctx = context;
}
origin: ukanth/afwall

@Override
public void onAttach(Activity activity) {
  super.onAttach(activity);
  if(Build.VERSION.SDK_INT < Build.VERSION_CODES.M){
    ctx = activity;
  }
}
origin: malmstein/yahnac

@Override
public void onAttach(Activity activity) {
  super.onAttach(activity);
  this.listener = (Listener) activity;
}
origin: grzegorznittner/chanu

@Override
public void onAttach(Activity activity) {
  super.onAttach(activity);
}
origin: DF1E/SimpleExplorer

@Override
public void onAttach(final Activity activity) {
  super.onAttach(activity);
  if (!(activity instanceof SettingsActivity)) {
    throw new RuntimeException("Should be attached only to SettingsActivity");
  }
}
origin: sylvek/itracing2

@Override
public void onAttach(Activity activity)
{
  super.onAttach(activity);
  if (activity instanceof OnPreferencesListener) {
    this.presenter = (OnPreferencesListener) activity;
  } else {
    throw new ClassCastException("must implement OnPreferencesListener");
  }
}
origin: kochka/WeightLogger

@Override
public void onAttach(Activity activity) {
 super.onAttach(activity);
 if (activity instanceof Callback) {
  mCallback = (Callback) activity;
 } else {
  throw new IllegalStateException("URLCallback interface not implement");
 }
}
origin: sylvek/itracing2

@Override
public void onAttach(Activity activity)
{
  super.onAttach(activity);
  if (activity instanceof OnDevicePreferencesListener) {
    this.presenter = (OnDevicePreferencesListener) activity;
  } else {
    throw new ClassCastException("must implement OnDevicePreferencesListener");
  }
}
origin: antest1/kcanotify

@Override
public void onAttach(Activity activity) {
  super.onAttach(activity);
  if (activity instanceof Callback) {
    mCallback = (Callback) activity;
  } else {
    throw new IllegalStateException("callback interface not implemented");
  }
}
origin: vbier/habpanelviewer

@Override
public void onAttach(Activity activity) {
  super.onAttach(activity);
  if (activity instanceof PreferenceCallback) {
    mCallback = (PreferenceCallback) activity;
  } else {
    throw new IllegalStateException("Owner must implement Callback interface");
  }
}
origin: fg607/RelaxFinger

@Override
public void onAttach(Context context) {
  super.onAttach(context);
  mContext = context;
  mActivity = (SettingActivity) getActivity();
}
origin: adblockplus/libadblockplus-android

@Override
public void onAttach(Activity activity)
{
 super.onAttach(activity);
 provider = castOrThrow(activity, Provider.class);
}
origin: TobiasBielefeld/Simple-Solitaire

  @Override
  public void onAttach(Activity activity){
    if(Build.VERSION.SDK_INT < Build.VERSION_CODES.M){
      reinitializeData(activity);
    }
    super.onAttach(activity);
  }
}
origin: fg607/RelaxFinger

@Override
public void onAttach(Activity activity) {
  super.onAttach(activity);
  mContext = activity;
  mActivity = (SettingActivity) getActivity();
}
origin: TobiasBielefeld/Simple-Solitaire

@Override
public void onAttach(Context context) {
  reinitializeData(context);
  super.onAttach(context);
}
origin: fasteque/rgb-tool

@Override
public void onAttach(Context context) {
  super.onAttach(context);
  try {
    onPreferenceSelectedListener = (OnPreferenceSelectedListener) getActivity();
  } catch (ClassCastException e) {
    throw new ClassCastException(getActivity().toString() + " must implement OnPreferenceSelectedListener");
  }
}
origin: andyiac/githot

  @Override
  public void onAttach(Activity activity) {
    super.onAttach(activity);
    if (!injected) {
      injected = true;
      Injector injector = (Injector) getActivity();
      injector.inject(this);
    }
  }
}
origin: towavephone/MemoryCleaner

@Override public void onAttach(Activity activity) {
  super.onAttach(activity);
  if (getActivity() != null && getActivity() instanceof SettingActivity) {
    this.activity = (SettingActivity) getActivity();
  }
}
android.preferencePreferenceFragmentonAttach

Popular methods of PreferenceFragment

  • onCreate
  • onResume
  • onPause
  • onDestroy
  • onOptionsItemSelected
  • onActivityCreated
  • onStart
  • onPreferenceTreeClick
  • onCreateView
  • onStop
  • onActivityResult
  • onViewCreated
  • onActivityResult,
  • onViewCreated,
  • onDestroyView,
  • onDetach,
  • getActivity,
  • onSaveInstanceState,
  • addPreferencesFromResource,
  • getPreferenceScreen,
  • onCreateOptionsMenu

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • onCreateOptionsMenu (Activity)
  • getSystemService (Context)
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • JButton (javax.swing)
  • JFileChooser (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now