Tabnine Logo
AutofillManager.hasEnabledAutofillServices
Code IndexAdd Tabnine to your IDE (free)

How to use
hasEnabledAutofillServices
method
in
android.view.autofill.AutofillManager

Best Java code snippets using android.view.autofill.AutofillManager.hasEnabledAutofillServices (Showing top 4 results out of 315)

origin: commonsguy/cw-omnibus

@Override
protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 AutofillManager af=getSystemService(AutofillManager.class);
 if (af.isAutofillSupported()) {
  if (af.hasEnabledAutofillServices()) {
   Toast.makeText(this, R.string.msg_ready, Toast.LENGTH_LONG).show();
   finish();
  }
  else {
   Uri uri=Uri.parse("package:"+getPackageName());
   Intent i=new Intent(Settings.ACTION_REQUEST_SET_AUTOFILL_SERVICE, uri);
   startActivityForResult(i, REQUEST_ID);
  }
 }
 else {
  Toast.makeText(this, R.string.msg_not_supported, Toast.LENGTH_LONG).show();
  finish();
 }
}
origin: googlesamples/android-AutofillFramework

private void startEnableService() {
  if (mAutofillManager != null && !mAutofillManager.hasEnabledAutofillServices()) {
    Intent intent = new Intent(Settings.ACTION_REQUEST_SET_AUTOFILL_SERVICE);
    intent.setData(Uri.parse("package:com.example.android.autofill.service"));
    logd(TAG, "enableService(): intent=%s", intent);
    startActivityForResult(intent, REQUEST_CODE_SET_DEFAULT);
  } else {
    logd("Sample service already enabled.");
  }
}
origin: googlesamples/android-AutofillFramework

private void disableService() {
  if (mAutofillManager != null && mAutofillManager.hasEnabledAutofillServices()) {
    mAutofillManager.disableAutofillServices();
    Snackbar.make(findViewById(R.id.settings_layout),
        R.string.settings_autofill_disabled_message, Snackbar.LENGTH_SHORT).show();
  } else {
    logd("Sample service already disabled.");
  }
}
origin: googlesamples/android-AutofillFramework

    R.id.settingsSetServiceLabel,
    R.id.settingsSetServiceSwitch,
    mAutofillManager.hasEnabledAutofillServices(),
    (compoundButton, serviceSet) -> setService(serviceSet));
RadioGroup loggingLevelContainer = findViewById(R.id.loggingLevelContainer);
android.view.autofillAutofillManagerhasEnabledAutofillServices

Popular methods of AutofillManager

  • isAutofillSupported
  • isEnabled
  • cancel
  • commit
  • disableAutofillServices
  • getNextAutofillId
  • notifyValueChanged
  • notifyViewEntered
  • notifyViewExited
  • registerCallback
  • requestAutofill
  • unregisterCallback
  • requestAutofill,
  • unregisterCallback

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onRequestPermissionsResult (Fragment)
  • setScale (BigDecimal)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JComboBox (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top plugins for Android Studio
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