Tabnine Logo
RestrictionEntry.getSelectedString
Code IndexAdd Tabnine to your IDE (free)

How to use
getSelectedString
method
in
android.content.RestrictionEntry

Best Java code snippets using android.content.RestrictionEntry.getSelectedString (Showing top 3 results out of 315)

origin: googlesamples/android-AppRestrictionSchema

private void updateMessage(RestrictionEntry entry, Bundle restrictions) {
  if (restrictions == null || !restrictions.containsKey(KEY_MESSAGE)) {
    mMessage = entry.getSelectedString();
  } else {
    mMessage = restrictions.getString(KEY_MESSAGE);
  }
}
origin: googlesamples/android-AppRestrictionSchema

private void updateRank(RestrictionEntry entry, Bundle restrictions) {
  String rank;
  if (restrictions == null || !restrictions.containsKey(KEY_RANK)) {
    rank = entry.getSelectedString();
  } else {
    rank = restrictions.getString(KEY_RANK);
  }
  mTextRank.setText(getString(R.string.your_rank, rank));
}
origin: googlesamples/android-AppRestrictionEnforcer

} else if (RESTRICTION_KEY_MESSAGE.equals(key)) {
  updateMessage(prefs.getString(RESTRICTION_KEY_MESSAGE,
      restriction.getSelectedString()));
} else if (RESTRICTION_KEY_NUMBER.equals(key)) {
  updateNumber(prefs.getInt(RESTRICTION_KEY_NUMBER,
} else if (RESTRICTION_KEY_RANK.equals(key)) {
  updateRank(activity, restriction.getChoiceValues(),
      prefs.getString(RESTRICTION_KEY_RANK, restriction.getSelectedString()));
} else if (RESTRICTION_KEY_APPROVALS.equals(key)) {
  updateApprovals(activity, restriction.getChoiceValues(),
android.contentRestrictionEntrygetSelectedString

Popular methods of RestrictionEntry

  • getKey
  • getAllSelectedStrings
  • getIntValue
  • getSelectedState
  • setTitle
  • <init>
  • getChoiceValues
  • setChoiceEntries
  • setChoiceValues
  • setDescription
  • setType
  • setType

Popular in Java

  • Reading from database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • JTable (javax.swing)
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top Vim plugins
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