/documentation/wifilocalizationservice/api/com/whereabout/location/LocationManager.html
HTML | 1628 lines | 1449 code | 155 blank | 24 comment | 0 complexity | ef60ad93c50384dfc4f4bc9bdf221129 MD5 | raw file
Possible License(s): GPL-3.0, Apache-2.0
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <!--NewPage-->
- <HTML>
- <HEAD>
- <!-- Generated by javadoc (build 1.6.0_18) on Fri Aug 27 17:46:36 PDT 2010 -->
- <TITLE>
- LocationManager
- </TITLE>
- <META NAME="date" CONTENT="2010-08-27">
- <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
- <SCRIPT type="text/javascript">
- function windowTitle()
- {
- if (location.href.indexOf('is-external=true') == -1) {
- parent.document.title="LocationManager";
- }
- }
- </SCRIPT>
- <NOSCRIPT>
- </NOSCRIPT>
- </HEAD>
- <BODY BGCOLOR="white" onload="windowTitle();">
- <HR>
- <!-- ========= START OF TOP NAVBAR ======= -->
- <A NAME="navbar_top"><!-- --></A>
- <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
- <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
- <TR>
- <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
- <A NAME="navbar_top_firstrow"><!-- --></A>
- <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
- <TR ALIGN="center" VALIGN="top">
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../com/whereabout/location/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
- <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
- </TR>
- </TABLE>
- </TD>
- <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
- </EM>
- </TD>
- </TR>
- <TR>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- PREV CLASS
- <A HREF="../../../com/whereabout/location/LocationManager.WifiLocalizationListener.html" title="interface in com.whereabout.location"><B>NEXT CLASS</B></A></FONT></TD>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../index.html?com/whereabout/location/LocationManager.html" target="_top"><B>FRAMES</B></A>
- <A HREF="LocationManager.html" target="_top"><B>NO FRAMES</B></A>
- <SCRIPT type="text/javascript">
- <!--
- if(window==top) {
- document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
- }
- //-->
- </SCRIPT>
- <NOSCRIPT>
- <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
- </NOSCRIPT>
- </FONT></TD>
- </TR>
- <TR>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
- </TR>
- </TABLE>
- <A NAME="skip-navbar_top"></A>
- <!-- ========= END OF TOP NAVBAR ========= -->
- <HR>
- <!-- ======== START OF CLASS DATA ======== -->
- <H2>
- <FONT SIZE="-1">
- com.whereabout.location</FONT>
- <BR>
- Class LocationManager</H2>
- <PRE>
- java.lang.Object
- <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.whereabout.location.LocationManager</B>
- </PRE>
- <HR>
- <DL>
- <DT><PRE>public class <B>LocationManager</B><DT>extends java.lang.Object</DL>
- </PRE>
- <P>
- Wrapper class for the WifiLocalizationService that makes it look like any
- other Location provider. Note that this LocationManager is nearly identical
- to the one in the Android Framework (and it calls up to the one that is in
- the Android Framework), except for the addition of the
- INDOOR_WIFI_LOCATION_PROVIDER.
- <P>
- <P>
- <HR>
- <P>
- <!-- ======== NESTED CLASS SUMMARY ======== -->
- <A NAME="nested_class_summary"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
- <B>Nested Class Summary</B></FONT></TH>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static interface</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.WifiLocalizationListener.html" title="interface in com.whereabout.location">LocationManager.WifiLocalizationListener</A></B></CODE>
- <BR>
- Implement this listener to receive callbacks from the LocationManager.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static interface</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.WifiLocationTaggingListener.html" title="interface in com.whereabout.location">LocationManager.WifiLocationTaggingListener</A></B></CODE>
- <BR>
- Implement this listener to receive a callback when save operation is done.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> class</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.WifiStorageException.html" title="class in com.whereabout.location">LocationManager.WifiStorageException</A></B></CODE>
- <BR>
- </TD>
- </TR>
- </TABLE>
- <!-- =========== FIELD SUMMARY =========== -->
- <A NAME="field_summary"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
- <B>Field Summary</B></FONT></TH>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#COMMAND_LOAD_FOR">COMMAND_LOAD_FOR</A></B></CODE>
- <BR>
- Command to load data from a specific director and for selected maps.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#COMMAND_REFRESH_DATA">COMMAND_REFRESH_DATA</A></B></CODE>
- <BR>
- Command to refresh the wifi scan data from the specified url if needed.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#FINAL_LAT">FINAL_LAT</A></B></CODE>
- <BR>
- </TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#FINAL_LOCATION_NAME">FINAL_LOCATION_NAME</A></B></CODE>
- <BR>
- Key used to retrieve the name of the best location estimate from the <CODE>Bundle</CODE> object
- obtained by calling <CODE>Location.getExtras</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#FINAL_LON">FINAL_LON</A></B></CODE>
- <BR>
- </TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#FINAL_X">FINAL_X</A></B></CODE>
- <BR>
- Key used to retrieve the X-coordinate of the best location estimate from the <CODE>Bundle</CODE>
- object obtained by calling <CODE>Location.getExtras</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#FINAL_Y">FINAL_Y</A></B></CODE>
- <BR>
- Key used to retrieve the Y-coordinate of the best location estimate from the <CODE>Bundle</CODE>
- object obtained by calling <CODE>Location.getExtras</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#INDOOR_WIFI_LOCATION_PROVIDER">INDOOR_WIFI_LOCATION_PROVIDER</A></B></CODE>
- <BR>
- the name of the indoor Wifi location provider.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#LOAD_FOR_AREA">LOAD_FOR_AREA</A></B></CODE>
- <BR>
- </TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#MAP_DIR">MAP_DIR</A></B></CODE>
- <BR>
- The default directory path where the map files are stored.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#MATCH_LATITUDES">MATCH_LATITUDES</A></B></CODE>
- <BR>
- Key used to retrieve latitudes for all matching locations from the <CODE>Bundle</CODE> object
- obtained by calling <CODE>Location.getExtras</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#MATCH_LOCATIONS">MATCH_LOCATIONS</A></B></CODE>
- <BR>
- Key used to retrieve all matching location names from the <CODE>Bundle</CODE> object
- obtained by calling <CODE>Location.getExtras</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#MATCH_LONGITUDES">MATCH_LONGITUDES</A></B></CODE>
- <BR>
- Key used to retrieve longitudes for all matching locations from the <CODE>Bundle</CODE> object
- obtained by calling <CODE>Location.getExtras</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#MATCH_MAPS">MATCH_MAPS</A></B></CODE>
- <BR>
- Key used to retrieve map names for all matching locations from the <CODE>Bundle</CODE> object
- obtained by calling <CODE>Location.getExtras</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#MATCH_SCORES">MATCH_SCORES</A></B></CODE>
- <BR>
- Key used to retrieve match scores for all matching locations from the <CODE>Bundle</CODE> object
- obtained by calling <CODE>Location.getExtras</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#MATCH_XCOORDS">MATCH_XCOORDS</A></B></CODE>
- <BR>
- Key used to retrieve X-coordinates for all matching locations from the <CODE>Bundle</CODE> object
- obtained by calling <CODE>Location.getExtras</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#MATCH_YCOORDS">MATCH_YCOORDS</A></B></CODE>
- <BR>
- Key used to retrieve Y-coordinates for all matching locations from the <CODE>Bundle</CODE> object
- obtained by calling <CODE>Location.getExtras</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#REFRESH_ASYNC">REFRESH_ASYNC</A></B></CODE>
- <BR>
- </TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#REFRESH_MAPS">REFRESH_MAPS</A></B></CODE>
- <BR>
- </TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#REFRESH_URL">REFRESH_URL</A></B></CODE>
- <BR>
- </TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#ROOT_DIR_NAME">ROOT_DIR_NAME</A></B></CODE>
- <BR>
- </TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#SCANS_DIR">SCANS_DIR</A></B></CODE>
- <BR>
- The default directory path where the WiFi data is stored.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE>static int</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#STATUS_INVALID_ROOT">STATUS_INVALID_ROOT</A></B></CODE>
- <BR>
- Path for the data directory was invalid.</TD>
- </TR>
- </TABLE>
-
- <!-- ======== CONSTRUCTOR SUMMARY ======== -->
- <A NAME="constructor_summary"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
- <B>Constructor Summary</B></FONT></TH>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#LocationManager(Context)">LocationManager</A></B>(Context context)</CODE>
- <BR>
- Creates a new LocationManager object setting the root directory to the default value of
- "/sdcard/wifiscans".</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#LocationManager(Context, ComponentName, java.lang.String)">LocationManager</A></B>(Context context,
- ComponentName wifiService,
- java.lang.String rootDirPath)</CODE>
- <BR>
- Creates a new LocationManager object setting the root directory to the specified path.</TD>
- </TR>
- </TABLE>
-
- <!-- ========== METHOD SUMMARY =========== -->
- <A NAME="method_summary"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
- <B>Method Summary</B></FONT></TH>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> boolean</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#addGpsStatusListener(GpsStatus.Listener)">addGpsStatusListener</A></B>(GpsStatus.Listener listener)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#addProximityAlert(double, double, float, long, PendingIntent)">addProximityAlert</A></B>(double latitude,
- double longitude,
- float radius,
- long expiration,
- PendingIntent intent)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#addTestProvider(java.lang.String, boolean, boolean, boolean, boolean, boolean, boolean, boolean, int, int)">addTestProvider</A></B>(java.lang.String name,
- boolean requiresNetwork,
- boolean requiresSatellite,
- boolean requiresCell,
- boolean hasMonetaryCost,
- boolean supportsAltitude,
- boolean supportsSpeed,
- boolean supportsBearing,
- int powerRequirement,
- int accuracy)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#clearTestProviderEnabled(java.lang.String)">clearTestProviderEnabled</A></B>(java.lang.String provider)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#clearTestProviderLocation(java.lang.String)">clearTestProviderLocation</A></B>(java.lang.String provider)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#clearTestProviderStatus(java.lang.String)">clearTestProviderStatus</A></B>(java.lang.String provider)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> java.util.List<java.lang.String></CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#getAllProviders()">getAllProviders</A></B>()</CODE>
- <BR>
- Gets the list of location providers from <CODE>android.location.LocationManager</CODE>, adds
- INDOOR_WIFI_LOCATION_PROVIDER to it, and returns the combined list.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> java.lang.String[]</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#getAllWifiScanLocations()">getAllWifiScanLocations</A></B>()</CODE>
- <BR>
- Returns names of all locations where Wifi scans were taken.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#getBestProvider(Criteria, boolean)">getBestProvider</A></B>(Criteria criteria,
- boolean enabledOnly)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> GpsStatus</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#getGpsStatus(GpsStatus)">getGpsStatus</A></B>(GpsStatus status)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> Location</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#getLastKnownLocation(java.lang.String)">getLastKnownLocation</A></B>(java.lang.String provider)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> LocationProvider</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#getProvider(java.lang.String)">getProvider</A></B>(java.lang.String name)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> java.util.List<java.lang.String></CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#getProviders(boolean)">getProviders</A></B>(boolean enabledOnly)</CODE>
- <BR>
- Gets the list of location providers from <CODE>android.location.LocationManager</CODE>, adds
- INDOOR_WIFI_LOCATION_PROVIDER to it, and returns the combined list.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> java.util.List<java.lang.String></CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#getProviders(Criteria, boolean)">getProviders</A></B>(Criteria criteria,
- boolean enabledOnly)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> java.lang.String[]</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#getWifiScanLocationsIn(java.lang.String, java.lang.String)">getWifiScanLocationsIn</A></B>(java.lang.String map,
- java.lang.String prefix)</CODE>
- <BR>
- Returns all locations in the map that matches the regular expression
- specified and whose names start with the specified prefix.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> boolean</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#isProviderEnabled(java.lang.String)">isProviderEnabled</A></B>(java.lang.String provider)</CODE>
- <BR>
- Returns the status of INDOOR_WIFI_LOCATION_PROVIDER if requested, otherwise delegates to
- <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> boolean</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#isReady()">isReady</A></B>()</CODE>
- <BR>
- Indicates whether the service has loaded all data and is ready to receive requests.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> boolean</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#localizeWithWifi(long, com.whereabout.location.LocationManager.WifiLocalizationListener)">localizeWithWifi</A></B>(long scanDuration,
- <A HREF="../../../com/whereabout/location/LocationManager.WifiLocalizationListener.html" title="interface in com.whereabout.location">LocationManager.WifiLocalizationListener</A> callback)</CODE>
- <BR>
- Provides a way to do on-demand localization using Wifi.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#removeGpsStatusListener(GpsStatus.Listener)">removeGpsStatusListener</A></B>(GpsStatus.Listener listener)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#removeProximityAlert(PendingIntent)">removeProximityAlert</A></B>(PendingIntent intent)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#removeTestProvider(java.lang.String)">removeTestProvider</A></B>(java.lang.String provider)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#removeUpdates(LocationListener)">removeUpdates</A></B>(LocationListener listener)</CODE>
- <BR>
- Removes any current registration for location updates of the current activity with the given
- LocationListener.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#removeUpdates(PendingIntent)">removeUpdates</A></B>(PendingIntent intent)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#requestLocationUpdates(java.lang.String, long, float, LocationListener)">requestLocationUpdates</A></B>(java.lang.String provider,
- long minTime,
- float minDistance,
- LocationListener listener)</CODE>
- <BR>
- Registers the specified listener to receive location updates.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#requestLocationUpdates(java.lang.String, long, float, LocationListener, Looper)">requestLocationUpdates</A></B>(java.lang.String provider,
- long minTime,
- float minDistance,
- LocationListener listener,
- Looper looper)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#requestLocationUpdates(java.lang.String, long, float, PendingIntent)">requestLocationUpdates</A></B>(java.lang.String provider,
- long minTime,
- float minDistance,
- PendingIntent intent)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> java.lang.String</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#runAccuracyTest(java.lang.String, java.lang.String)">runAccuracyTest</A></B>(java.lang.String dir,
- java.lang.String file)</CODE>
- <BR>
- This is currently a place-holder for a method that runs accuracy tests that computes
- sensitivity and specificity by classifying the data stored in the specified directory.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#saveScan(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, int, double, double, int, long, com.whereabout.location.LocationManager.WifiLocationTaggingListener)">saveScan</A></B>(java.lang.String dir,
- java.lang.String area,
- java.lang.String building,
- java.lang.String floor,
- java.lang.String location,
- int x,
- int y,
- double lat,
- double lon,
- int scanFreq,
- long duration,
- <A HREF="../../../com/whereabout/location/LocationManager.WifiLocationTaggingListener.html" title="interface in com.whereabout.location">LocationManager.WifiLocationTaggingListener</A> doneListener)</CODE>
- <BR>
- Asynchronously collects Wifi scans and tags them with the specified meta data.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> boolean</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#sendExtraCommand(java.lang.String, java.lang.String, Bundle)">sendExtraCommand</A></B>(java.lang.String provider,
- java.lang.String command,
- Bundle extras)</CODE>
- <BR>
- Sends extra commands to the location provider.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#setTestProviderEnabled(java.lang.String, boolean)">setTestProviderEnabled</A></B>(java.lang.String provider,
- boolean enabled)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#setTestProviderLocation(java.lang.String, Location)">setTestProviderLocation</A></B>(java.lang.String provider,
- Location loc)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#setTestProviderStatus(java.lang.String, int, Bundle, long)">setTestProviderStatus</A></B>(java.lang.String provider,
- int status,
- Bundle extras,
- long updateTime)</CODE>
- <BR>
- Delegates to <CODE>android.location.LocationManager</CODE>.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#shutdown()">shutdown</A></B>()</CODE>
- <BR>
- Shuts down this location manager and does the necessary cleanup.</TD>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
- <CODE> void</CODE></FONT></TD>
- <TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#startWifiService()">startWifiService</A></B>()</CODE>
- <BR>
- Starts the WiFi localization service.</TD>
- </TR>
- </TABLE>
- <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
- <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
- </TR>
- <TR BGCOLOR="white" CLASS="TableRowColor">
- <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
- </TR>
- </TABLE>
-
- <P>
- <!-- ============ FIELD DETAIL =========== -->
- <A NAME="field_detail"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
- <B>Field Detail</B></FONT></TH>
- </TR>
- </TABLE>
- <A NAME="SCANS_DIR"><!-- --></A><H3>
- SCANS_DIR</H3>
- <PRE>
- public static final java.lang.String <B>SCANS_DIR</B></PRE>
- <DL>
- <DD>The default directory path where the WiFi data is stored.
- <P>
- <DL>
- </DL>
- </DL>
- <HR>
- <A NAME="MAP_DIR"><!-- --></A><H3>
- MAP_DIR</H3>
- <PRE>
- public static final java.lang.String <B>MAP_DIR</B></PRE>
- <DL>
- <DD>The default directory path where the map files are stored.
- <P>
- <DL>
- </DL>
- </DL>
- <HR>
- <A NAME="INDOOR_WIFI_LOCATION_PROVIDER"><!-- --></A><H3>
- INDOOR_WIFI_LOCATION_PROVIDER</H3>
- <PRE>
- public static final java.lang.String <B>INDOOR_WIFI_LOCATION_PROVIDER</B></PRE>
- <DL>
- <DD>the name of the indoor Wifi location provider.
- <P>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.INDOOR_WIFI_LOCATION_PROVIDER">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="COMMAND_LOAD_FOR"><!-- --></A><H3>
- COMMAND_LOAD_FOR</H3>
- <PRE>
- public static final java.lang.String <B>COMMAND_LOAD_FOR</B></PRE>
- <DL>
- <DD>Command to load data from a specific director and for selected maps.
- <P>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.COMMAND_LOAD_FOR">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="COMMAND_REFRESH_DATA"><!-- --></A><H3>
- COMMAND_REFRESH_DATA</H3>
- <PRE>
- public static final java.lang.String <B>COMMAND_REFRESH_DATA</B></PRE>
- <DL>
- <DD>Command to refresh the wifi scan data from the specified url if needed. This command is
- currently unsupported.
- <P>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.COMMAND_REFRESH_DATA">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="STATUS_INVALID_ROOT"><!-- --></A><H3>
- STATUS_INVALID_ROOT</H3>
- <PRE>
- public static final int <B>STATUS_INVALID_ROOT</B></PRE>
- <DL>
- <DD>Path for the data directory was invalid.
- <P>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.STATUS_INVALID_ROOT">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="MATCH_MAPS"><!-- --></A><H3>
- MATCH_MAPS</H3>
- <PRE>
- public static final java.lang.String <B>MATCH_MAPS</B></PRE>
- <DL>
- <DD>Key used to retrieve map names for all matching locations from the <CODE>Bundle</CODE> object
- obtained by calling <CODE>Location.getExtras</CODE>.
- <P>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.MATCH_MAPS">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="MATCH_SCORES"><!-- --></A><H3>
- MATCH_SCORES</H3>
- <PRE>
- public static final java.lang.String <B>MATCH_SCORES</B></PRE>
- <DL>
- <DD>Key used to retrieve match scores for all matching locations from the <CODE>Bundle</CODE> object
- obtained by calling <CODE>Location.getExtras</CODE>.
- <P>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.MATCH_SCORES">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="MATCH_LOCATIONS"><!-- --></A><H3>
- MATCH_LOCATIONS</H3>
- <PRE>
- public static final java.lang.String <B>MATCH_LOCATIONS</B></PRE>
- <DL>
- <DD>Key used to retrieve all matching location names from the <CODE>Bundle</CODE> object
- obtained by calling <CODE>Location.getExtras</CODE>.
- <P>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.MATCH_LOCATIONS">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="MATCH_XCOORDS"><!-- --></A><H3>
- MATCH_XCOORDS</H3>
- <PRE>
- public static final java.lang.String <B>MATCH_XCOORDS</B></PRE>
- <DL>
- <DD>Key used to retrieve X-coordinates for all matching locations from the <CODE>Bundle</CODE> object
- obtained by calling <CODE>Location.getExtras</CODE>.
- <P>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.MATCH_XCOORDS">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="MATCH_YCOORDS"><!-- --></A><H3>
- MATCH_YCOORDS</H3>
- <PRE>
- public static final java.lang.String <B>MATCH_YCOORDS</B></PRE>
- <DL>
- <DD>Key used to retrieve Y-coordinates for all matching locations from the <CODE>Bundle</CODE> object
- obtained by calling <CODE>Location.getExtras</CODE>.
- <P>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.MATCH_YCOORDS">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="MATCH_LATITUDES"><!-- --></A><H3>
- MATCH_LATITUDES</H3>
- <PRE>
- public static final java.lang.String <B>MATCH_LATITUDES</B></PRE>
- <DL>
- <DD>Key used to retrieve latitudes for all matching locations from the <CODE>Bundle</CODE> object
- obtained by calling <CODE>Location.getExtras</CODE>.
- <P>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.MATCH_LATITUDES">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="MATCH_LONGITUDES"><!-- --></A><H3>
- MATCH_LONGITUDES</H3>
- <PRE>
- public static final java.lang.String <B>MATCH_LONGITUDES</B></PRE>
- <DL>
- <DD>Key used to retrieve longitudes for all matching locations from the <CODE>Bundle</CODE> object
- obtained by calling <CODE>Location.getExtras</CODE>.
- <P>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.MATCH_LONGITUDES">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="FINAL_LOCATION_NAME"><!-- --></A><H3>
- FINAL_LOCATION_NAME</H3>
- <PRE>
- public static final java.lang.String <B>FINAL_LOCATION_NAME</B></PRE>
- <DL>
- <DD>Key used to retrieve the name of the best location estimate from the <CODE>Bundle</CODE> object
- obtained by calling <CODE>Location.getExtras</CODE>.
- <P>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.FINAL_LOCATION_NAME">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="FINAL_X"><!-- --></A><H3>
- FINAL_X</H3>
- <PRE>
- public static final java.lang.String <B>FINAL_X</B></PRE>
- <DL>
- <DD>Key used to retrieve the X-coordinate of the best location estimate from the <CODE>Bundle</CODE>
- object obtained by calling <CODE>Location.getExtras</CODE>.
- <P>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.FINAL_X">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="FINAL_Y"><!-- --></A><H3>
- FINAL_Y</H3>
- <PRE>
- public static final java.lang.String <B>FINAL_Y</B></PRE>
- <DL>
- <DD>Key used to retrieve the Y-coordinate of the best location estimate from the <CODE>Bundle</CODE>
- object obtained by calling <CODE>Location.getExtras</CODE>.
- <P>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.FINAL_Y">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="FINAL_LAT"><!-- --></A><H3>
- FINAL_LAT</H3>
- <PRE>
- public static final java.lang.String <B>FINAL_LAT</B></PRE>
- <DL>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.FINAL_LAT">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="FINAL_LON"><!-- --></A><H3>
- FINAL_LON</H3>
- <PRE>
- public static final java.lang.String <B>FINAL_LON</B></PRE>
- <DL>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.FINAL_LON">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="ROOT_DIR_NAME"><!-- --></A><H3>
- ROOT_DIR_NAME</H3>
- <PRE>
- public static final java.lang.String <B>ROOT_DIR_NAME</B></PRE>
- <DL>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.ROOT_DIR_NAME">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="LOAD_FOR_AREA"><!-- --></A><H3>
- LOAD_FOR_AREA</H3>
- <PRE>
- public static final java.lang.String <B>LOAD_FOR_AREA</B></PRE>
- <DL>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.LOAD_FOR_AREA">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="REFRESH_URL"><!-- --></A><H3>
- REFRESH_URL</H3>
- <PRE>
- public static final java.lang.String <B>REFRESH_URL</B></PRE>
- <DL>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.REFRESH_URL">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="REFRESH_MAPS"><!-- --></A><H3>
- REFRESH_MAPS</H3>
- <PRE>
- public static final java.lang.String <B>REFRESH_MAPS</B></PRE>
- <DL>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.REFRESH_MAPS">Constant Field Values</A></DL>
- </DL>
- <HR>
- <A NAME="REFRESH_ASYNC"><!-- --></A><H3>
- REFRESH_ASYNC</H3>
- <PRE>
- public static final java.lang.String <B>REFRESH_ASYNC</B></PRE>
- <DL>
- <DL>
- <DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.REFRESH_ASYNC">Constant Field Values</A></DL>
- </DL>
- <!-- ========= CONSTRUCTOR DETAIL ======== -->
- <A NAME="constructor_detail"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
- <B>Constructor Detail</B></FONT></TH>
- </TR>
- </TABLE>
- <A NAME="LocationManager(Context)"><!-- --></A><H3>
- LocationManager</H3>
- <PRE>
- public <B>LocationManager</B>(Context context)</PRE>
- <DL>
- <DD>Creates a new LocationManager object setting the root directory to the default value of
- "/sdcard/wifiscans".
- <P>
- <DL>
- <DT><B>Parameters:</B><DD><CODE>context</CODE> - The activity context</DL>
- </DL>
- <HR>
- <A NAME="LocationManager(Context, ComponentName, java.lang.String)"><!-- --></A><H3>
- LocationManager</H3>
- <PRE>
- public <B>LocationManager</B>(Context context,
- ComponentName wifiService,
- java.lang.String rootDirPath)</PRE>
- <DL>
- <DD>Creates a new LocationManager object setting the root directory to the specified path.
- <P>
- <DL>
- <DT><B>Parameters:</B><DD><CODE>context</CODE> - The activity context<DD><CODE>wifiService</CODE> - Not used, pass null<DD><CODE>rootDirPath</CODE> - The path to the root directory where tagged WiFi signatures will be
- saved and read from for localization</DL>
- </DL>
- <!-- ============ METHOD DETAIL ========== -->
- <A NAME="method_detail"><!-- --></A>
- <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
- <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
- <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
- <B>Method Detail</B></FONT></TH>
- </TR>
- </TABLE>
- <A NAME="addGpsStatusListener(GpsStatus.Listener)"><!-- --></A><H3>
- addGpsStatusListener</H3>
- <PRE>
- public boolean <B>addGpsStatusListener</B>(GpsStatus.Listener listener)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="addProximityAlert(double, double, float, long, PendingIntent)"><!-- --></A><H3>
- addProximityAlert</H3>
- <PRE>
- public void <B>addProximityAlert</B>(double latitude,
- double longitude,
- float radius,
- long expiration,
- PendingIntent intent)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="addTestProvider(java.lang.String, boolean, boolean, boolean, boolean, boolean, boolean, boolean, int, int)"><!-- --></A><H3>
- addTestProvider</H3>
- <PRE>
- public void <B>addTestProvider</B>(java.lang.String name,
- boolean requiresNetwork,
- boolean requiresSatellite,
- boolean requiresCell,
- boolean hasMonetaryCost,
- boolean supportsAltitude,
- boolean supportsSpeed,
- boolean supportsBearing,
- int powerRequirement,
- int accuracy)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="clearTestProviderEnabled(java.lang.String)"><!-- --></A><H3>
- clearTestProviderEnabled</H3>
- <PRE>
- public void <B>clearTestProviderEnabled</B>(java.lang.String provider)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="clearTestProviderLocation(java.lang.String)"><!-- --></A><H3>
- clearTestProviderLocation</H3>
- <PRE>
- public void <B>clearTestProviderLocation</B>(java.lang.String provider)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="clearTestProviderStatus(java.lang.String)"><!-- --></A><H3>
- clearTestProviderStatus</H3>
- <PRE>
- public void <B>clearTestProviderStatus</B>(java.lang.String provider)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getAllProviders()"><!-- --></A><H3>
- getAllProviders</H3>
- <PRE>
- public java.util.List<java.lang.String> <B>getAllProviders</B>()</PRE>
- <DL>
- <DD>Gets the list of location providers from <CODE>android.location.LocationManager</CODE>, adds
- INDOOR_WIFI_LOCATION_PROVIDER to it, and returns the combined list.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getBestProvider(Criteria, boolean)"><!-- --></A><H3>
- getBestProvider</H3>
- <PRE>
- public java.lang.String <B>getBestProvider</B>(Criteria criteria,
- boolean enabledOnly)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getGpsStatus(GpsStatus)"><!-- --></A><H3>
- getGpsStatus</H3>
- <PRE>
- public GpsStatus <B>getGpsStatus</B>(GpsStatus status)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getLastKnownLocation(java.lang.String)"><!-- --></A><H3>
- getLastKnownLocation</H3>
- <PRE>
- public Location <B>getLastKnownLocation</B>(java.lang.String provider)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>. Currently not supported for
- indoor WiFi location provider.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getProvider(java.lang.String)"><!-- --></A><H3>
- getProvider</H3>
- <PRE>
- public LocationProvider <B>getProvider</B>(java.lang.String name)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>. Currently not supported for
- indoor WiFi location provider.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getProviders(Criteria, boolean)"><!-- --></A><H3>
- getProviders</H3>
- <PRE>
- public java.util.List<java.lang.String> <B>getProviders</B>(Criteria criteria,
- boolean enabledOnly)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>. Currently not supported for
- indoor WiFi location provider.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getProviders(boolean)"><!-- --></A><H3>
- getProviders</H3>
- <PRE>
- public java.util.List<java.lang.String> <B>getProviders</B>(boolean enabledOnly)</PRE>
- <DL>
- <DD>Gets the list of location providers from <CODE>android.location.LocationManager</CODE>, adds
- INDOOR_WIFI_LOCATION_PROVIDER to it, and returns the combined list.
- <P>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>enabledOnly</CODE> - if true then only the providers which are currently enabled are returned.
- <DT><B>Returns:</B><DD>list of Strings containing names of the providers.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="isProviderEnabled(java.lang.String)"><!-- --></A><H3>
- isProviderEnabled</H3>
- <PRE>
- public boolean <B>isProviderEnabled</B>(java.lang.String provider)</PRE>
- <DL>
- <DD>Returns the status of INDOOR_WIFI_LOCATION_PROVIDER if requested, otherwise delegates to
- <CODE>android.location.LocationManager</CODE>.
- <P>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>provider</CODE> - The location provider name.
- <DT><B>Returns:</B><DD>true if the provider is enabled, false otherwise.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="removeGpsStatusListener(GpsStatus.Listener)"><!-- --></A><H3>
- removeGpsStatusListener</H3>
- <PRE>
- public void <B>removeGpsStatusListener</B>(GpsStatus.Listener listener)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="removeProximityAlert(PendingIntent)"><!-- --></A><H3>
- removeProximityAlert</H3>
- <PRE>
- public void <B>removeProximityAlert</B>(PendingIntent intent)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="removeTestProvider(java.lang.String)"><!-- --></A><H3>
- removeTestProvider</H3>
- <PRE>
- public void <B>removeTestProvider</B>(java.lang.String provider)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="removeUpdates(LocationListener)"><!-- --></A><H3>
- removeUpdates</H3>
- <PRE>
- public void <B>removeUpdates</B>(LocationListener listener)</PRE>
- <DL>
- <DD>Removes any current registration for location updates of the current activity with the given
- LocationListener. Following this call, updates will no longer occur for this listener.
- <P>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>listener</CODE> - <CODE>LocationListener</CODE> object that no longer needs location updates.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="removeUpdates(PendingIntent)"><!-- --></A><H3>
- removeUpdates</H3>
- <PRE>
- public void <B>removeUpdates</B>(PendingIntent intent)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="requestLocationUpdates(java.lang.String, long, float, PendingIntent)"><!-- --></A><H3>
- requestLocationUpdates</H3>
- <PRE>
- public void <B>requestLocationUpdates</B>(java.lang.String provider,
- long minTime,
- float minDistance,
- PendingIntent intent)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="requestLocationUpdates(java.lang.String, long, float, LocationListener)"><!-- --></A><H3>
- requestLocationUpdates</H3>
- <PRE>
- public void <B>requestLocationUpdates</B>(java.lang.String provider,
- long minTime,
- float minDistance,
- LocationListener listener)</PRE>
- <DL>
- <DD>Registers the specified listener to receive location updates. If the provider is
- INDOOR_WIFI_LOCATION_PROVIDER, minTime and minDistance parameters are ignored, and
- updates are sent about every 1 second, otherwise delegates to
- <CODE>android.location.LocationManager</CODE>.
- <P>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>provider</CODE> - The location provider to get updates from.<DD><CODE>minTime</CODE> - Minimum duration in ms between updates. Ignored for
- INDOOR_WIFI_LOCATION_PROVIDER.<DD><CODE>minDistance</CODE> - Minimum distance between location updates. Ignored for
- INDOOR_WIFI_LOCATION_PROVIDER.<DD><CODE>listener</CODE> - The <CODE>LocationListener</CODE> interested in getting the location updates.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="requestLocationUpdates(java.lang.String, long, float, LocationListener, Looper)"><!-- --></A><H3>
- requestLocationUpdates</H3>
- <PRE>
- public void <B>requestLocationUpdates</B>(java.lang.String provider,
- long minTime,
- float minDistance,
- LocationListener listener,
- Looper looper)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="sendExtraCommand(java.lang.String, java.lang.String, Bundle)"><!-- --></A><H3>
- sendExtraCommand</H3>
- <PRE>
- public boolean <B>sendExtraCommand</B>(java.lang.String provider,
- java.lang.String command,
- Bundle extras)</PRE>
- <DL>
- <DD>Sends extra commands to the location provider. This method specifically handles extra
- commands for the indoor Wifi location provider.
- <P>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>provider</CODE> - The name of the location provider<DD><CODE>command</CODE> - The command string. Currently only COMMAND_LOAD_FOR is supported for the
- indoor Wifi location provider. For other providers the call is delegated to
- <CODE>android.location.LocationManager</CODE><DD><CODE>extras</CODE> - The parameters for the command
- <DT><B>Returns:</B><DD>whether the command was successfully delivered to the location provider</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="setTestProviderEnabled(java.lang.String, boolean)"><!-- --></A><H3>
- setTestProviderEnabled</H3>
- <PRE>
- public void <B>setTestProviderEnabled</B>(java.lang.String provider,
- boolean enabled)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="setTestProviderLocation(java.lang.String, Location)"><!-- --></A><H3>
- setTestProviderLocation</H3>
- <PRE>
- public void <B>setTestProviderLocation</B>(java.lang.String provider,
- Location loc)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="setTestProviderStatus(java.lang.String, int, Bundle, long)"><!-- --></A><H3>
- setTestProviderStatus</H3>
- <PRE>
- public void <B>setTestProviderStatus</B>(java.lang.String provider,
- int status,
- Bundle extras,
- long updateTime)</PRE>
- <DL>
- <DD>Delegates to <CODE>android.location.LocationManager</CODE>.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="startWifiService()"><!-- --></A><H3>
- startWifiService</H3>
- <PRE>
- public void <B>startWifiService</B>()
- throws <A HREF="../../../com/whereabout/location/LocationManager.WifiStorageException.html" title="class in com.whereabout.location">LocationManager.WifiStorageException</A></PRE>
- <DL>
- <DD>Starts the WiFi localization service.
- <P>
- <DD><DL>
- <DT><B>Throws:</B>
- <DD><CODE><A HREF="../../../com/whereabout/location/LocationManager.WifiStorageException.html" title="class in com.whereabout.location">LocationManager.WifiStorageException</A></CODE> - Throws this exception if external storage is not found or
- not mounted.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="shutdown()"><!-- --></A><H3>
- shutdown</H3>
- <PRE>
- public void <B>shutdown</B>()</PRE>
- <DL>
- <DD>Shuts down this location manager and does the necessary cleanup.
- <P>
- <DD><DL>
- </DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getAllWifiScanLocations()"><!-- --></A><H3>
- getAllWifiScanLocations</H3>
- <PRE>
- public java.lang.String[] <B>getAllWifiScanLocations</B>()</PRE>
- <DL>
- <DD>Returns names of all locations where Wifi scans were taken.
- <P>
- <DD><DL>
- <DT><B>Returns:</B><DD>An array of location names</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="getWifiScanLocationsIn(java.lang.String, java.lang.String)"><!-- --></A><H3>
- getWifiScanLocationsIn</H3>
- <PRE>
- public java.lang.String[] <B>getWifiScanLocationsIn</B>(java.lang.String map,
- java.lang.String prefix)</PRE>
- <DL>
- <DD>Returns all locations in the map that matches the regular expression
- specified and whose names start with the specified prefix.
- <P>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>map</CODE> - Regular expression for the map in which scans were taken.<DD><CODE>prefix</CODE> - locations starting with this prefix are returned
- <DT><B>Returns:</B><DD>An array of location names</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="isReady()"><!-- --></A><H3>
- isReady</H3>
- <PRE>
- public boolean <B>isReady</B>()</PRE>
- <DL>
- <DD>Indicates whether the service has loaded all data and is ready to receive requests.
- <P>
- <DD><DL>
- <DT><B>Returns:</B><DD>true if the service is ready, false otherwise</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="saveScan(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, int, int, double, double, int, long, com.whereabout.location.LocationManager.WifiLocationTaggingListener)"><!-- --></A><H3>
- saveScan</H3>
- <PRE>
- public void <B>saveScan</B>(java.lang.String dir,
- java.lang.String area,
- java.lang.String building,
- java.lang.String floor,
- java.lang.String location,
- int x,
- int y,
- double lat,
- double lon,
- int scanFreq,
- long duration,
- <A HREF="../../../com/whereabout/location/LocationManager.WifiLocationTaggingListener.html" title="interface in com.whereabout.location">LocationManager.WifiLocationTaggingListener</A> doneListener)</PRE>
- <DL>
- <DD>Asynchronously collects Wifi scans and tags them with the specified meta data.
- <P>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>dir</CODE> - The directory to save the scan to<DD><CODE>area</CODE> - <DD><CODE>building</CODE> - <DD><CODE>floor</CODE> - <DD><CODE>location</CODE> - <DD><CODE>x</CODE> - X-coordinate of the location on the map image<DD><CODE>y</CODE> - Y-coordinate of the location on the map image<DD><CODE>lat</CODE> - Latitude for this location<DD><CODE>lon</CODE> - Longitude for this location<DD><CODE>scanFreq</CODE> - Number of WiFi scans to take per second<DD><CODE>duration</CODE> - Duration in ms for which to collect WiFi scans</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="localizeWithWifi(long, com.whereabout.location.LocationManager.WifiLocalizationListener)"><!-- --></A><H3>
- localizeWithWifi</H3>
- <PRE>
- public boolean <B>localizeWithWifi</B>(long scanDuration,
- <A HREF="../../../com/whereabout/location/LocationManager.WifiLocalizationListener.html" title="interface in com.whereabout.location">LocationManager.WifiLocalizationListener</A> callback)</PRE>
- <DL>
- <DD>Provides a way to do on-demand localization using Wifi.
- <P>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>scanDuration</CODE> - The duration of scanning in ms. It might take more time before results
- are available since the method takes additional time to wait for the service to be ready
- and to flush the cached Wifi scans.<DD><CODE>callback</CODE> - The callback listener to call when localization is done.
- <DT><B>Returns:</B><DD>Whether request for localization was successful.</DL>
- </DD>
- </DL>
- <HR>
- <A NAME="runAccuracyTest(java.lang.String, java.lang.String)"><!-- --></A><H3>
- runAccuracyTest</H3>
- <PRE>
- public java.lang.String <B>runAccuracyTest</B>(java.lang.String dir,
- java.lang.String file)</PRE>
- <DL>
- <DD>This is currently a place-holder for a method that runs accuracy tests that computes
- sensitivity and specificity by classifying the data stored in the specified directory.
- <P>
- <DD><DL>
- <DT><B>Parameters:</B><DD><CODE>dir</CODE> - The directory in which test data is stored<DD><CODE>file</CODE> - The tests are ran for the data files starting with this string
- <DT><B>Returns:</B><DD>Returns the specificity and sensitivity formatted as a string
- "specificity:sensitivity", e.g. "0.85:0.96666"</DL>
- </DD>
- </DL>
- <!-- ========= END OF CLASS DATA ========= -->
- <HR>
- <!-- ======= START OF BOTTOM NAVBAR ====== -->
- <A NAME="navbar_bottom"><!-- --></A>
- <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
- <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
- <TR>
- <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
- <A NAME="navbar_bottom_firstrow"><!-- --></A>
- <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
- <TR ALIGN="center" VALIGN="top">
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../com/whereabout/location/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
- <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
- <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
- </TR>
- </TABLE>
- </TD>
- <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
- </EM>
- </TD>
- </TR>
- <TR>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- PREV CLASS
- <A HREF="../../../com/whereabout/location/LocationManager.WifiLocalizationListener.html" title="interface in com.whereabout.location"><B>NEXT CLASS</B></A></FONT></TD>
- <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
- <A HREF="../../../index.html?com/whereabout/location/LocationManager.html" target="_top"><B>FRAMES</B></A>
- <A HREF="LocationManager.html" target="_top"><B>NO FRAMES</B></A>
- <SCRIPT type="text/javascript">
- <!--
- if(window==top) {
- document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
- }
- //-->
- </SCRIPT>
- <NOSCRIPT>
- <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
- </NOSCRIPT>
- </FONT></TD>
- </TR>
- <TR>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
- <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
- DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
- </TR>
- </TABLE>
- <A NAME="skip-navbar_bottom"></A>
- <!-- ======== END OF BOTTOM NAVBAR ======= -->
- <HR>
- </BODY>
- </HTML>