Tabnine Logo
LocationPreferences
Code IndexAdd Tabnine to your IDE (free)

How to use
LocationPreferences
in
it.tidalwave.mobile.location

Best Java code snippets using it.tidalwave.mobile.location.LocationPreferences (Showing top 7 results out of 315)

origin: it.tidalwave.bluebill/bluebill-mobile-android

 public void renderTo (final @Nonnull TextView textView, @Nonnull Object... extra) 
  {
   final StringBuilder builder = new StringBuilder();
   builder.append(generalPreferences.get().formatDateAndTime(observation.getDate(), "<b>", "</b>"));
   final Location location = observation.getLocation();
   if (location != null) // shouldn't happen, but it does because of various bugs
    {
     builder.append("<br>");
     builder.append(location.getDisplayName());
     try
      {
       final Range range = location.as(Range);
       builder.append(String.format("<br><small>%s</small>", locationPreferences.get().format(range)));
      }
     catch (AsException e)
      {
       // range not available, never mind
      }
    }
   textView.setText(Html.fromHtml(builder.toString()));
  }
}
origin: it.tidalwave.bluebill/it-tidalwave-android-utilities

 public void onSharedPreferenceChanged (final @Nonnull SharedPreferences sharedPreferences,
                     final @Nonnull String string)
  {
   setAddressSearchEnabled(locationPreferences.isReverseGeocodingEnabled());
  }
};
origin: it.tidalwave.bluebill/it-tidalwave-android-utilities

setAddressSearchEnabled(locationPreferences.isReverseGeocodingEnabled());
setState(IDLE);
    setProviderName(locationManager.getBestProvider((Criteria)locationPreferences.getCriteria(), true));
origin: it.tidalwave.bluebill.android/it-tidalwave-android-utilities

setAddressSearchEnabled(locationPreferences.isReverseGeocodingEnabled());
setState(IDLE);
    setProviderName(locationManager.getBestProvider((Criteria)locationPreferences.getCriteria(), true));
origin: it.tidalwave.bluebill/it-tidalwave-bluebill-mobile-observation

buffer.append(" - ").append(locationPreferences.format(location.as(Range)));
origin: it.tidalwave.bluebill.android/it-tidalwave-android-utilities

 public void onSharedPreferenceChanged (final @Nonnull SharedPreferences sharedPreferences,
                     final @Nonnull String string)
  {
   setAddressSearchEnabled(locationPreferences.isReverseGeocodingEnabled());
  }
};
origin: it.tidalwave.bluebill/bluebill-mobile-android

etCoordinate.setText(locationPreferences.format(range));
btRecomputePlace.setEnabled(true);
it.tidalwave.mobile.locationLocationPreferences

Javadoc

FIXME: move to it.tidalwave.bluebill.mobile.location after dropping the dependency on Android

Most used methods

  • format
  • getCriteria
  • isReverseGeocodingEnabled

Popular in Java

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • notifyDataSetChanged (ArrayAdapter)
  • findViewById (Activity)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • JOptionPane (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Runner (org.openjdk.jmh.runner)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top 12 Jupyter Notebook extensions
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