Tabnine Logo
PreferenceFragment.onOptionsItemSelected
Code IndexAdd Tabnine to your IDE (free)

How to use
onOptionsItemSelected
method
in
android.preference.PreferenceFragment

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

origin: SecUSo/privacy-friendly-sudoku

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == android.R.id.home) {
      getActivity().finish();
      return true;
    }
    return super.onOptionsItemSelected(item);
  }
}
origin: IanDarwin/Android-Cookbook-Examples

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == android.R.id.home) {
      startActivity(new Intent(getActivity(), SettingsActivity.class));
      return true;
    }
    return super.onOptionsItemSelected(item);
  }
}
origin: IanDarwin/Android-Cookbook-Examples

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == android.R.id.home) {
      startActivity(new Intent(getActivity(), SettingsActivity.class));
      return true;
    }
    return super.onOptionsItemSelected(item);
  }
}
origin: lincanbin/Android-Carbon-Forum

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == android.R.id.home) {
      startActivity(new Intent(getActivity(), SettingsActivity.class));
      return true;
    }
    return super.onOptionsItemSelected(item);
  }
}
origin: google-developer-training/android-fundamentals-apps-v2

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == android.R.id.home) {
      startActivity(
          new Intent(getActivity(), SettingsActivity.class));
      return true;
    }
    return super.onOptionsItemSelected(item);
  }
}
origin: IanDarwin/Android-Cookbook-Examples

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == android.R.id.home) {
      startActivity(new Intent(getActivity(), SettingsActivity.class));
      return true;
    }
    return super.onOptionsItemSelected(item);
  }
}
origin: vitas/beaconloc

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == android.R.id.home) {
      startActivity(new Intent(getActivity(), SettingsActivity.class));
      return true;
    }
    return super.onOptionsItemSelected(item);
  }
}
origin: google-developer-training/android-fundamentals

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == android.R.id.home) {
      startActivity(new Intent(getActivity(), SettingsActivity.class));
      return true;
    }
    return super.onOptionsItemSelected(item);
  }
}
origin: abrenoch/hyperion-android-grabber

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == android.R.id.home) {
      startActivity(new Intent(getActivity(), SettingsActivity.class));
      return true;
    }
    return super.onOptionsItemSelected(item);
  }
}
origin: hemant3370/Insta

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == android.R.id.home) {
      startActivity(new Intent(getActivity(), SettingsActivity.class));
      return true;
    }
    return super.onOptionsItemSelected(item);
  }
}
origin: lincanbin/Android-Carbon-Forum

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == android.R.id.home) {
      startActivity(new Intent(getActivity(), SettingsActivity.class));
      return true;
    }
    return super.onOptionsItemSelected(item);
  }
}
origin: lincanbin/Android-Carbon-Forum

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == android.R.id.home) {
      startActivity(new Intent(getActivity(), SettingsActivity.class));
      return true;
    }
    return super.onOptionsItemSelected(item);
  }
}
origin: zoff99/ToxAndroidRefImpl

  @Override
  public boolean onOptionsItemSelected(MenuItem item)
  {
    int id = item.getItemId();
    if (id == android.R.id.home)
    {
      startActivity(new Intent(getActivity(), SettingsActivity.class));
      return true;
    }
    return super.onOptionsItemSelected(item);
  }
}
origin: SecUSo/privacy-friendly-netmonitor

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == android.R.id.home) {
      //getAppContext().finish();
      startActivity(new Intent(getActivity(), SettingsActivity.class));
      return true;
    }
    return super.onOptionsItemSelected(item);
  }
}
origin: vitas/beaconloc

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    switch (id) {
      case android.R.id.home:
        startActivity(new Intent(getActivity(), SettingsActivity.class));
        return true;
    }
    return super.onOptionsItemSelected(item);
  }
}
origin: Snapcept/Snapcept

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == android.R.id.home) {
      startActivity(new Intent(getActivity(), SettingsActivity.class));
      return true;
    }
    return super.onOptionsItemSelected(item);
  }
}
origin: BrightcoveOS/android-player-samples

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == android.R.id.home) {
      startActivity(new Intent(getActivity(), SettingsActivity.class));
      return true;
    }
    return super.onOptionsItemSelected(item);
  }
}
origin: halzhang/EverExample

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == android.R.id.home) {
      startActivity(new Intent(getActivity(), QQSettingsActivity.class));
      return true;
    }
    return super.onOptionsItemSelected(item);
  }
}
origin: google-developer-training/android-fundamentals

  @Override
  public boolean onOptionsItemSelected(MenuItem item) {
    int id = item.getItemId();
    if (id == android.R.id.home) {
      startActivity(new Intent(getActivity(), SettingsActivity.class));
      return true;
    }
    return super.onOptionsItemSelected(item);
  }
}
origin: EvanRespaut/Equate

 @Override
 public boolean onOptionsItemSelected(MenuItem item) {
   int id = item.getItemId();
   ViewUtils.toast("other", getActivity());
   if (id == android.R.id.home){
    ViewUtils.toast("Home", getActivity());
    startActivity(new Intent(getActivity(), SettingsActivity.class));
    return true;
   }
   return super.onOptionsItemSelected(item);
 }
}
android.preferencePreferenceFragmentonOptionsItemSelected

Popular methods of PreferenceFragment

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

Popular in Java

  • Reactive rest calls using spring rest template
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getExternalFilesDir (Context)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now