/documentation/wifilocalizationservice/api/com/whereabout/location/LocationManager.html
HTML | 1628 lines | 1449 code | 155 blank | 24 comment | 0 complexity | ef60ad93c50384dfc4f4bc9bdf221129 MD5 | raw file
Large files files are truncated, but you can click here to view the full file
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 2<!--NewPage--> 3<HTML> 4<HEAD> 5<!-- Generated by javadoc (build 1.6.0_18) on Fri Aug 27 17:46:36 PDT 2010 --> 6<TITLE> 7LocationManager 8</TITLE> 9 10<META NAME="date" CONTENT="2010-08-27"> 11 12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"> 13 14<SCRIPT type="text/javascript"> 15function windowTitle() 16{ 17 if (location.href.indexOf('is-external=true') == -1) { 18 parent.document.title="LocationManager"; 19 } 20} 21</SCRIPT> 22<NOSCRIPT> 23</NOSCRIPT> 24 25</HEAD> 26 27<BODY BGCOLOR="white" onload="windowTitle();"> 28<HR> 29 30 31<!-- ========= START OF TOP NAVBAR ======= --> 32<A NAME="navbar_top"><!-- --></A> 33<A HREF="#skip-navbar_top" title="Skip navigation links"></A> 34<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> 35<TR> 36<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> 37<A NAME="navbar_top_firstrow"><!-- --></A> 38<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> 39 <TR ALIGN="center" VALIGN="top"> 40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../com/whereabout/location/package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> 41 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> 42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> 43 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> 44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> 45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> 46 </TR> 47</TABLE> 48</TD> 49<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> 50</EM> 51</TD> 52</TR> 53 54<TR> 55<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 56 PREV CLASS 57 <A HREF="../../../com/whereabout/location/LocationManager.WifiLocalizationListener.html" title="interface in com.whereabout.location"><B>NEXT CLASS</B></A></FONT></TD> 58<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> 59 <A HREF="../../../index.html?com/whereabout/location/LocationManager.html" target="_top"><B>FRAMES</B></A> 60 <A HREF="LocationManager.html" target="_top"><B>NO FRAMES</B></A> 61 <SCRIPT type="text/javascript"> 62 <!-- 63 if(window==top) { 64 document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>'); 65 } 66 //--> 67</SCRIPT> 68<NOSCRIPT> 69 <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A> 70</NOSCRIPT> 71 72 73</FONT></TD> 74</TR> 75<TR> 76<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 77 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> 78<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> 79DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> 80</TR> 81</TABLE> 82<A NAME="skip-navbar_top"></A> 83<!-- ========= END OF TOP NAVBAR ========= --> 84 85<HR> 86<!-- ======== START OF CLASS DATA ======== --> 87<H2> 88<FONT SIZE="-1"> 89com.whereabout.location</FONT> 90<BR> 91Class LocationManager</H2> 92<PRE> 93java.lang.Object 94 <IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>com.whereabout.location.LocationManager</B> 95</PRE> 96<HR> 97<DL> 98<DT><PRE>public class <B>LocationManager</B><DT>extends java.lang.Object</DL> 99</PRE> 100 101<P> 102Wrapper class for the WifiLocalizationService that makes it look like any 103 other Location provider. Note that this LocationManager is nearly identical 104 to the one in the Android Framework (and it calls up to the one that is in 105 the Android Framework), except for the addition of the 106 INDOOR_WIFI_LOCATION_PROVIDER. 107<P> 108 109<P> 110<HR> 111 112<P> 113<!-- ======== NESTED CLASS SUMMARY ======== --> 114 115<A NAME="nested_class_summary"><!-- --></A> 116<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 117<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 118<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 119<B>Nested Class Summary</B></FONT></TH> 120</TR> 121<TR BGCOLOR="white" CLASS="TableRowColor"> 122<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 123<CODE>static interface</CODE></FONT></TD> 124<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.WifiLocalizationListener.html" title="interface in com.whereabout.location">LocationManager.WifiLocalizationListener</A></B></CODE> 125 126<BR> 127 Implement this listener to receive callbacks from the LocationManager.</TD> 128</TR> 129<TR BGCOLOR="white" CLASS="TableRowColor"> 130<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 131<CODE>static interface</CODE></FONT></TD> 132<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.WifiLocationTaggingListener.html" title="interface in com.whereabout.location">LocationManager.WifiLocationTaggingListener</A></B></CODE> 133 134<BR> 135 Implement this listener to receive a callback when save operation is done.</TD> 136</TR> 137<TR BGCOLOR="white" CLASS="TableRowColor"> 138<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 139<CODE> class</CODE></FONT></TD> 140<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.WifiStorageException.html" title="class in com.whereabout.location">LocationManager.WifiStorageException</A></B></CODE> 141 142<BR> 143 </TD> 144</TR> 145</TABLE> 146 <!-- =========== FIELD SUMMARY =========== --> 147 148<A NAME="field_summary"><!-- --></A> 149<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 150<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 151<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 152<B>Field Summary</B></FONT></TH> 153</TR> 154<TR BGCOLOR="white" CLASS="TableRowColor"> 155<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 156<CODE>static java.lang.String</CODE></FONT></TD> 157<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#COMMAND_LOAD_FOR">COMMAND_LOAD_FOR</A></B></CODE> 158 159<BR> 160 Command to load data from a specific director and for selected maps.</TD> 161</TR> 162<TR BGCOLOR="white" CLASS="TableRowColor"> 163<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 164<CODE>static java.lang.String</CODE></FONT></TD> 165<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#COMMAND_REFRESH_DATA">COMMAND_REFRESH_DATA</A></B></CODE> 166 167<BR> 168 Command to refresh the wifi scan data from the specified url if needed.</TD> 169</TR> 170<TR BGCOLOR="white" CLASS="TableRowColor"> 171<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 172<CODE>static java.lang.String</CODE></FONT></TD> 173<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#FINAL_LAT">FINAL_LAT</A></B></CODE> 174 175<BR> 176 </TD> 177</TR> 178<TR BGCOLOR="white" CLASS="TableRowColor"> 179<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 180<CODE>static java.lang.String</CODE></FONT></TD> 181<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#FINAL_LOCATION_NAME">FINAL_LOCATION_NAME</A></B></CODE> 182 183<BR> 184 Key used to retrieve the name of the best location estimate from the <CODE>Bundle</CODE> object 185 obtained by calling <CODE>Location.getExtras</CODE>.</TD> 186</TR> 187<TR BGCOLOR="white" CLASS="TableRowColor"> 188<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 189<CODE>static java.lang.String</CODE></FONT></TD> 190<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#FINAL_LON">FINAL_LON</A></B></CODE> 191 192<BR> 193 </TD> 194</TR> 195<TR BGCOLOR="white" CLASS="TableRowColor"> 196<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 197<CODE>static java.lang.String</CODE></FONT></TD> 198<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#FINAL_X">FINAL_X</A></B></CODE> 199 200<BR> 201 Key used to retrieve the X-coordinate of the best location estimate from the <CODE>Bundle</CODE> 202 object obtained by calling <CODE>Location.getExtras</CODE>.</TD> 203</TR> 204<TR BGCOLOR="white" CLASS="TableRowColor"> 205<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 206<CODE>static java.lang.String</CODE></FONT></TD> 207<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#FINAL_Y">FINAL_Y</A></B></CODE> 208 209<BR> 210 Key used to retrieve the Y-coordinate of the best location estimate from the <CODE>Bundle</CODE> 211 object obtained by calling <CODE>Location.getExtras</CODE>.</TD> 212</TR> 213<TR BGCOLOR="white" CLASS="TableRowColor"> 214<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 215<CODE>static java.lang.String</CODE></FONT></TD> 216<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#INDOOR_WIFI_LOCATION_PROVIDER">INDOOR_WIFI_LOCATION_PROVIDER</A></B></CODE> 217 218<BR> 219 the name of the indoor Wifi location provider.</TD> 220</TR> 221<TR BGCOLOR="white" CLASS="TableRowColor"> 222<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 223<CODE>static java.lang.String</CODE></FONT></TD> 224<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#LOAD_FOR_AREA">LOAD_FOR_AREA</A></B></CODE> 225 226<BR> 227 </TD> 228</TR> 229<TR BGCOLOR="white" CLASS="TableRowColor"> 230<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 231<CODE>static java.lang.String</CODE></FONT></TD> 232<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#MAP_DIR">MAP_DIR</A></B></CODE> 233 234<BR> 235 The default directory path where the map files are stored.</TD> 236</TR> 237<TR BGCOLOR="white" CLASS="TableRowColor"> 238<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 239<CODE>static java.lang.String</CODE></FONT></TD> 240<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#MATCH_LATITUDES">MATCH_LATITUDES</A></B></CODE> 241 242<BR> 243 Key used to retrieve latitudes for all matching locations from the <CODE>Bundle</CODE> object 244 obtained by calling <CODE>Location.getExtras</CODE>.</TD> 245</TR> 246<TR BGCOLOR="white" CLASS="TableRowColor"> 247<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 248<CODE>static java.lang.String</CODE></FONT></TD> 249<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#MATCH_LOCATIONS">MATCH_LOCATIONS</A></B></CODE> 250 251<BR> 252 Key used to retrieve all matching location names from the <CODE>Bundle</CODE> object 253 obtained by calling <CODE>Location.getExtras</CODE>.</TD> 254</TR> 255<TR BGCOLOR="white" CLASS="TableRowColor"> 256<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 257<CODE>static java.lang.String</CODE></FONT></TD> 258<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#MATCH_LONGITUDES">MATCH_LONGITUDES</A></B></CODE> 259 260<BR> 261 Key used to retrieve longitudes for all matching locations from the <CODE>Bundle</CODE> object 262 obtained by calling <CODE>Location.getExtras</CODE>.</TD> 263</TR> 264<TR BGCOLOR="white" CLASS="TableRowColor"> 265<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 266<CODE>static java.lang.String</CODE></FONT></TD> 267<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#MATCH_MAPS">MATCH_MAPS</A></B></CODE> 268 269<BR> 270 Key used to retrieve map names for all matching locations from the <CODE>Bundle</CODE> object 271 obtained by calling <CODE>Location.getExtras</CODE>.</TD> 272</TR> 273<TR BGCOLOR="white" CLASS="TableRowColor"> 274<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 275<CODE>static java.lang.String</CODE></FONT></TD> 276<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#MATCH_SCORES">MATCH_SCORES</A></B></CODE> 277 278<BR> 279 Key used to retrieve match scores for all matching locations from the <CODE>Bundle</CODE> object 280 obtained by calling <CODE>Location.getExtras</CODE>.</TD> 281</TR> 282<TR BGCOLOR="white" CLASS="TableRowColor"> 283<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 284<CODE>static java.lang.String</CODE></FONT></TD> 285<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#MATCH_XCOORDS">MATCH_XCOORDS</A></B></CODE> 286 287<BR> 288 Key used to retrieve X-coordinates for all matching locations from the <CODE>Bundle</CODE> object 289 obtained by calling <CODE>Location.getExtras</CODE>.</TD> 290</TR> 291<TR BGCOLOR="white" CLASS="TableRowColor"> 292<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 293<CODE>static java.lang.String</CODE></FONT></TD> 294<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#MATCH_YCOORDS">MATCH_YCOORDS</A></B></CODE> 295 296<BR> 297 Key used to retrieve Y-coordinates for all matching locations from the <CODE>Bundle</CODE> object 298 obtained by calling <CODE>Location.getExtras</CODE>.</TD> 299</TR> 300<TR BGCOLOR="white" CLASS="TableRowColor"> 301<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 302<CODE>static java.lang.String</CODE></FONT></TD> 303<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#REFRESH_ASYNC">REFRESH_ASYNC</A></B></CODE> 304 305<BR> 306 </TD> 307</TR> 308<TR BGCOLOR="white" CLASS="TableRowColor"> 309<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 310<CODE>static java.lang.String</CODE></FONT></TD> 311<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#REFRESH_MAPS">REFRESH_MAPS</A></B></CODE> 312 313<BR> 314 </TD> 315</TR> 316<TR BGCOLOR="white" CLASS="TableRowColor"> 317<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 318<CODE>static java.lang.String</CODE></FONT></TD> 319<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#REFRESH_URL">REFRESH_URL</A></B></CODE> 320 321<BR> 322 </TD> 323</TR> 324<TR BGCOLOR="white" CLASS="TableRowColor"> 325<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 326<CODE>static java.lang.String</CODE></FONT></TD> 327<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#ROOT_DIR_NAME">ROOT_DIR_NAME</A></B></CODE> 328 329<BR> 330 </TD> 331</TR> 332<TR BGCOLOR="white" CLASS="TableRowColor"> 333<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 334<CODE>static java.lang.String</CODE></FONT></TD> 335<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#SCANS_DIR">SCANS_DIR</A></B></CODE> 336 337<BR> 338 The default directory path where the WiFi data is stored.</TD> 339</TR> 340<TR BGCOLOR="white" CLASS="TableRowColor"> 341<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 342<CODE>static int</CODE></FONT></TD> 343<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#STATUS_INVALID_ROOT">STATUS_INVALID_ROOT</A></B></CODE> 344 345<BR> 346 Path for the data directory was invalid.</TD> 347</TR> 348</TABLE> 349 350<!-- ======== CONSTRUCTOR SUMMARY ======== --> 351 352<A NAME="constructor_summary"><!-- --></A> 353<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 354<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 355<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 356<B>Constructor Summary</B></FONT></TH> 357</TR> 358<TR BGCOLOR="white" CLASS="TableRowColor"> 359<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#LocationManager(Context)">LocationManager</A></B>(Context context)</CODE> 360 361<BR> 362 Creates a new LocationManager object setting the root directory to the default value of 363 "/sdcard/wifiscans".</TD> 364</TR> 365<TR BGCOLOR="white" CLASS="TableRowColor"> 366<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#LocationManager(Context, ComponentName, java.lang.String)">LocationManager</A></B>(Context context, 367 ComponentName wifiService, 368 java.lang.String rootDirPath)</CODE> 369 370<BR> 371 Creates a new LocationManager object setting the root directory to the specified path.</TD> 372</TR> 373</TABLE> 374 375<!-- ========== METHOD SUMMARY =========== --> 376 377<A NAME="method_summary"><!-- --></A> 378<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 379<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 380<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> 381<B>Method Summary</B></FONT></TH> 382</TR> 383<TR BGCOLOR="white" CLASS="TableRowColor"> 384<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 385<CODE> boolean</CODE></FONT></TD> 386<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#addGpsStatusListener(GpsStatus.Listener)">addGpsStatusListener</A></B>(GpsStatus.Listener listener)</CODE> 387 388<BR> 389 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 390</TR> 391<TR BGCOLOR="white" CLASS="TableRowColor"> 392<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 393<CODE> void</CODE></FONT></TD> 394<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#addProximityAlert(double, double, float, long, PendingIntent)">addProximityAlert</A></B>(double latitude, 395 double longitude, 396 float radius, 397 long expiration, 398 PendingIntent intent)</CODE> 399 400<BR> 401 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 402</TR> 403<TR BGCOLOR="white" CLASS="TableRowColor"> 404<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 405<CODE> void</CODE></FONT></TD> 406<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, 407 boolean requiresNetwork, 408 boolean requiresSatellite, 409 boolean requiresCell, 410 boolean hasMonetaryCost, 411 boolean supportsAltitude, 412 boolean supportsSpeed, 413 boolean supportsBearing, 414 int powerRequirement, 415 int accuracy)</CODE> 416 417<BR> 418 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 419</TR> 420<TR BGCOLOR="white" CLASS="TableRowColor"> 421<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 422<CODE> void</CODE></FONT></TD> 423<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#clearTestProviderEnabled(java.lang.String)">clearTestProviderEnabled</A></B>(java.lang.String provider)</CODE> 424 425<BR> 426 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 427</TR> 428<TR BGCOLOR="white" CLASS="TableRowColor"> 429<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 430<CODE> void</CODE></FONT></TD> 431<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#clearTestProviderLocation(java.lang.String)">clearTestProviderLocation</A></B>(java.lang.String provider)</CODE> 432 433<BR> 434 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 435</TR> 436<TR BGCOLOR="white" CLASS="TableRowColor"> 437<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 438<CODE> void</CODE></FONT></TD> 439<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#clearTestProviderStatus(java.lang.String)">clearTestProviderStatus</A></B>(java.lang.String provider)</CODE> 440 441<BR> 442 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 443</TR> 444<TR BGCOLOR="white" CLASS="TableRowColor"> 445<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 446<CODE> java.util.List<java.lang.String></CODE></FONT></TD> 447<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#getAllProviders()">getAllProviders</A></B>()</CODE> 448 449<BR> 450 Gets the list of location providers from <CODE>android.location.LocationManager</CODE>, adds 451 INDOOR_WIFI_LOCATION_PROVIDER to it, and returns the combined list.</TD> 452</TR> 453<TR BGCOLOR="white" CLASS="TableRowColor"> 454<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 455<CODE> java.lang.String[]</CODE></FONT></TD> 456<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#getAllWifiScanLocations()">getAllWifiScanLocations</A></B>()</CODE> 457 458<BR> 459 Returns names of all locations where Wifi scans were taken.</TD> 460</TR> 461<TR BGCOLOR="white" CLASS="TableRowColor"> 462<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 463<CODE> java.lang.String</CODE></FONT></TD> 464<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#getBestProvider(Criteria, boolean)">getBestProvider</A></B>(Criteria criteria, 465 boolean enabledOnly)</CODE> 466 467<BR> 468 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 469</TR> 470<TR BGCOLOR="white" CLASS="TableRowColor"> 471<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 472<CODE> GpsStatus</CODE></FONT></TD> 473<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#getGpsStatus(GpsStatus)">getGpsStatus</A></B>(GpsStatus status)</CODE> 474 475<BR> 476 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 477</TR> 478<TR BGCOLOR="white" CLASS="TableRowColor"> 479<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 480<CODE> Location</CODE></FONT></TD> 481<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#getLastKnownLocation(java.lang.String)">getLastKnownLocation</A></B>(java.lang.String provider)</CODE> 482 483<BR> 484 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 485</TR> 486<TR BGCOLOR="white" CLASS="TableRowColor"> 487<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 488<CODE> LocationProvider</CODE></FONT></TD> 489<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#getProvider(java.lang.String)">getProvider</A></B>(java.lang.String name)</CODE> 490 491<BR> 492 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 493</TR> 494<TR BGCOLOR="white" CLASS="TableRowColor"> 495<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 496<CODE> java.util.List<java.lang.String></CODE></FONT></TD> 497<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#getProviders(boolean)">getProviders</A></B>(boolean enabledOnly)</CODE> 498 499<BR> 500 Gets the list of location providers from <CODE>android.location.LocationManager</CODE>, adds 501 INDOOR_WIFI_LOCATION_PROVIDER to it, and returns the combined list.</TD> 502</TR> 503<TR BGCOLOR="white" CLASS="TableRowColor"> 504<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 505<CODE> java.util.List<java.lang.String></CODE></FONT></TD> 506<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#getProviders(Criteria, boolean)">getProviders</A></B>(Criteria criteria, 507 boolean enabledOnly)</CODE> 508 509<BR> 510 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 511</TR> 512<TR BGCOLOR="white" CLASS="TableRowColor"> 513<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 514<CODE> java.lang.String[]</CODE></FONT></TD> 515<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#getWifiScanLocationsIn(java.lang.String, java.lang.String)">getWifiScanLocationsIn</A></B>(java.lang.String map, 516 java.lang.String prefix)</CODE> 517 518<BR> 519 Returns all locations in the map that matches the regular expression 520 specified and whose names start with the specified prefix.</TD> 521</TR> 522<TR BGCOLOR="white" CLASS="TableRowColor"> 523<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 524<CODE> boolean</CODE></FONT></TD> 525<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#isProviderEnabled(java.lang.String)">isProviderEnabled</A></B>(java.lang.String provider)</CODE> 526 527<BR> 528 Returns the status of INDOOR_WIFI_LOCATION_PROVIDER if requested, otherwise delegates to 529 <CODE>android.location.LocationManager</CODE>.</TD> 530</TR> 531<TR BGCOLOR="white" CLASS="TableRowColor"> 532<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 533<CODE> boolean</CODE></FONT></TD> 534<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#isReady()">isReady</A></B>()</CODE> 535 536<BR> 537 Indicates whether the service has loaded all data and is ready to receive requests.</TD> 538</TR> 539<TR BGCOLOR="white" CLASS="TableRowColor"> 540<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 541<CODE> boolean</CODE></FONT></TD> 542<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#localizeWithWifi(long, com.whereabout.location.LocationManager.WifiLocalizationListener)">localizeWithWifi</A></B>(long scanDuration, 543 <A HREF="../../../com/whereabout/location/LocationManager.WifiLocalizationListener.html" title="interface in com.whereabout.location">LocationManager.WifiLocalizationListener</A> callback)</CODE> 544 545<BR> 546 Provides a way to do on-demand localization using Wifi.</TD> 547</TR> 548<TR BGCOLOR="white" CLASS="TableRowColor"> 549<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 550<CODE> void</CODE></FONT></TD> 551<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#removeGpsStatusListener(GpsStatus.Listener)">removeGpsStatusListener</A></B>(GpsStatus.Listener listener)</CODE> 552 553<BR> 554 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 555</TR> 556<TR BGCOLOR="white" CLASS="TableRowColor"> 557<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 558<CODE> void</CODE></FONT></TD> 559<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#removeProximityAlert(PendingIntent)">removeProximityAlert</A></B>(PendingIntent intent)</CODE> 560 561<BR> 562 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 563</TR> 564<TR BGCOLOR="white" CLASS="TableRowColor"> 565<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 566<CODE> void</CODE></FONT></TD> 567<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#removeTestProvider(java.lang.String)">removeTestProvider</A></B>(java.lang.String provider)</CODE> 568 569<BR> 570 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 571</TR> 572<TR BGCOLOR="white" CLASS="TableRowColor"> 573<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 574<CODE> void</CODE></FONT></TD> 575<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#removeUpdates(LocationListener)">removeUpdates</A></B>(LocationListener listener)</CODE> 576 577<BR> 578 Removes any current registration for location updates of the current activity with the given 579 LocationListener.</TD> 580</TR> 581<TR BGCOLOR="white" CLASS="TableRowColor"> 582<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 583<CODE> void</CODE></FONT></TD> 584<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#removeUpdates(PendingIntent)">removeUpdates</A></B>(PendingIntent intent)</CODE> 585 586<BR> 587 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 588</TR> 589<TR BGCOLOR="white" CLASS="TableRowColor"> 590<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 591<CODE> void</CODE></FONT></TD> 592<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#requestLocationUpdates(java.lang.String, long, float, LocationListener)">requestLocationUpdates</A></B>(java.lang.String provider, 593 long minTime, 594 float minDistance, 595 LocationListener listener)</CODE> 596 597<BR> 598 Registers the specified listener to receive location updates.</TD> 599</TR> 600<TR BGCOLOR="white" CLASS="TableRowColor"> 601<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 602<CODE> void</CODE></FONT></TD> 603<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, 604 long minTime, 605 float minDistance, 606 LocationListener listener, 607 Looper looper)</CODE> 608 609<BR> 610 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 611</TR> 612<TR BGCOLOR="white" CLASS="TableRowColor"> 613<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 614<CODE> void</CODE></FONT></TD> 615<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#requestLocationUpdates(java.lang.String, long, float, PendingIntent)">requestLocationUpdates</A></B>(java.lang.String provider, 616 long minTime, 617 float minDistance, 618 PendingIntent intent)</CODE> 619 620<BR> 621 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 622</TR> 623<TR BGCOLOR="white" CLASS="TableRowColor"> 624<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 625<CODE> java.lang.String</CODE></FONT></TD> 626<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#runAccuracyTest(java.lang.String, java.lang.String)">runAccuracyTest</A></B>(java.lang.String dir, 627 java.lang.String file)</CODE> 628 629<BR> 630 This is currently a place-holder for a method that runs accuracy tests that computes 631 sensitivity and specificity by classifying the data stored in the specified directory.</TD> 632</TR> 633<TR BGCOLOR="white" CLASS="TableRowColor"> 634<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 635<CODE> void</CODE></FONT></TD> 636<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, 637 java.lang.String area, 638 java.lang.String building, 639 java.lang.String floor, 640 java.lang.String location, 641 int x, 642 int y, 643 double lat, 644 double lon, 645 int scanFreq, 646 long duration, 647 <A HREF="../../../com/whereabout/location/LocationManager.WifiLocationTaggingListener.html" title="interface in com.whereabout.location">LocationManager.WifiLocationTaggingListener</A> doneListener)</CODE> 648 649<BR> 650 Asynchronously collects Wifi scans and tags them with the specified meta data.</TD> 651</TR> 652<TR BGCOLOR="white" CLASS="TableRowColor"> 653<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 654<CODE> boolean</CODE></FONT></TD> 655<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, 656 java.lang.String command, 657 Bundle extras)</CODE> 658 659<BR> 660 Sends extra commands to the location provider.</TD> 661</TR> 662<TR BGCOLOR="white" CLASS="TableRowColor"> 663<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 664<CODE> void</CODE></FONT></TD> 665<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#setTestProviderEnabled(java.lang.String, boolean)">setTestProviderEnabled</A></B>(java.lang.String provider, 666 boolean enabled)</CODE> 667 668<BR> 669 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 670</TR> 671<TR BGCOLOR="white" CLASS="TableRowColor"> 672<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 673<CODE> void</CODE></FONT></TD> 674<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#setTestProviderLocation(java.lang.String, Location)">setTestProviderLocation</A></B>(java.lang.String provider, 675 Location loc)</CODE> 676 677<BR> 678 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 679</TR> 680<TR BGCOLOR="white" CLASS="TableRowColor"> 681<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 682<CODE> void</CODE></FONT></TD> 683<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#setTestProviderStatus(java.lang.String, int, Bundle, long)">setTestProviderStatus</A></B>(java.lang.String provider, 684 int status, 685 Bundle extras, 686 long updateTime)</CODE> 687 688<BR> 689 Delegates to <CODE>android.location.LocationManager</CODE>.</TD> 690</TR> 691<TR BGCOLOR="white" CLASS="TableRowColor"> 692<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 693<CODE> void</CODE></FONT></TD> 694<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#shutdown()">shutdown</A></B>()</CODE> 695 696<BR> 697 Shuts down this location manager and does the necessary cleanup.</TD> 698</TR> 699<TR BGCOLOR="white" CLASS="TableRowColor"> 700<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> 701<CODE> void</CODE></FONT></TD> 702<TD><CODE><B><A HREF="../../../com/whereabout/location/LocationManager.html#startWifiService()">startWifiService</A></B>()</CODE> 703 704<BR> 705 Starts the WiFi localization service.</TD> 706</TR> 707</TABLE> 708 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> 709<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 710<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> 711<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> 712</TR> 713<TR BGCOLOR="white" CLASS="TableRowColor"> 714<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD> 715</TR> 716</TABLE> 717 718<P> 719 720<!-- ============ FIELD DETAIL =========== --> 721 722<A NAME="field_detail"><!-- --></A> 723<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 724<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 725<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 726<B>Field Detail</B></FONT></TH> 727</TR> 728</TABLE> 729 730<A NAME="SCANS_DIR"><!-- --></A><H3> 731SCANS_DIR</H3> 732<PRE> 733public static final java.lang.String <B>SCANS_DIR</B></PRE> 734<DL> 735<DD>The default directory path where the WiFi data is stored. 736<P> 737<DL> 738</DL> 739</DL> 740<HR> 741 742<A NAME="MAP_DIR"><!-- --></A><H3> 743MAP_DIR</H3> 744<PRE> 745public static final java.lang.String <B>MAP_DIR</B></PRE> 746<DL> 747<DD>The default directory path where the map files are stored. 748<P> 749<DL> 750</DL> 751</DL> 752<HR> 753 754<A NAME="INDOOR_WIFI_LOCATION_PROVIDER"><!-- --></A><H3> 755INDOOR_WIFI_LOCATION_PROVIDER</H3> 756<PRE> 757public static final java.lang.String <B>INDOOR_WIFI_LOCATION_PROVIDER</B></PRE> 758<DL> 759<DD>the name of the indoor Wifi location provider. 760<P> 761<DL> 762<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.INDOOR_WIFI_LOCATION_PROVIDER">Constant Field Values</A></DL> 763</DL> 764<HR> 765 766<A NAME="COMMAND_LOAD_FOR"><!-- --></A><H3> 767COMMAND_LOAD_FOR</H3> 768<PRE> 769public static final java.lang.String <B>COMMAND_LOAD_FOR</B></PRE> 770<DL> 771<DD>Command to load data from a specific director and for selected maps. 772<P> 773<DL> 774<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.COMMAND_LOAD_FOR">Constant Field Values</A></DL> 775</DL> 776<HR> 777 778<A NAME="COMMAND_REFRESH_DATA"><!-- --></A><H3> 779COMMAND_REFRESH_DATA</H3> 780<PRE> 781public static final java.lang.String <B>COMMAND_REFRESH_DATA</B></PRE> 782<DL> 783<DD>Command to refresh the wifi scan data from the specified url if needed. This command is 784 currently unsupported. 785<P> 786<DL> 787<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.COMMAND_REFRESH_DATA">Constant Field Values</A></DL> 788</DL> 789<HR> 790 791<A NAME="STATUS_INVALID_ROOT"><!-- --></A><H3> 792STATUS_INVALID_ROOT</H3> 793<PRE> 794public static final int <B>STATUS_INVALID_ROOT</B></PRE> 795<DL> 796<DD>Path for the data directory was invalid. 797<P> 798<DL> 799<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.STATUS_INVALID_ROOT">Constant Field Values</A></DL> 800</DL> 801<HR> 802 803<A NAME="MATCH_MAPS"><!-- --></A><H3> 804MATCH_MAPS</H3> 805<PRE> 806public static final java.lang.String <B>MATCH_MAPS</B></PRE> 807<DL> 808<DD>Key used to retrieve map names for all matching locations from the <CODE>Bundle</CODE> object 809 obtained by calling <CODE>Location.getExtras</CODE>. 810<P> 811<DL> 812<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.MATCH_MAPS">Constant Field Values</A></DL> 813</DL> 814<HR> 815 816<A NAME="MATCH_SCORES"><!-- --></A><H3> 817MATCH_SCORES</H3> 818<PRE> 819public static final java.lang.String <B>MATCH_SCORES</B></PRE> 820<DL> 821<DD>Key used to retrieve match scores for all matching locations from the <CODE>Bundle</CODE> object 822 obtained by calling <CODE>Location.getExtras</CODE>. 823<P> 824<DL> 825<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.MATCH_SCORES">Constant Field Values</A></DL> 826</DL> 827<HR> 828 829<A NAME="MATCH_LOCATIONS"><!-- --></A><H3> 830MATCH_LOCATIONS</H3> 831<PRE> 832public static final java.lang.String <B>MATCH_LOCATIONS</B></PRE> 833<DL> 834<DD>Key used to retrieve all matching location names from the <CODE>Bundle</CODE> object 835 obtained by calling <CODE>Location.getExtras</CODE>. 836<P> 837<DL> 838<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.MATCH_LOCATIONS">Constant Field Values</A></DL> 839</DL> 840<HR> 841 842<A NAME="MATCH_XCOORDS"><!-- --></A><H3> 843MATCH_XCOORDS</H3> 844<PRE> 845public static final java.lang.String <B>MATCH_XCOORDS</B></PRE> 846<DL> 847<DD>Key used to retrieve X-coordinates for all matching locations from the <CODE>Bundle</CODE> object 848 obtained by calling <CODE>Location.getExtras</CODE>. 849<P> 850<DL> 851<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.MATCH_XCOORDS">Constant Field Values</A></DL> 852</DL> 853<HR> 854 855<A NAME="MATCH_YCOORDS"><!-- --></A><H3> 856MATCH_YCOORDS</H3> 857<PRE> 858public static final java.lang.String <B>MATCH_YCOORDS</B></PRE> 859<DL> 860<DD>Key used to retrieve Y-coordinates for all matching locations from the <CODE>Bundle</CODE> object 861 obtained by calling <CODE>Location.getExtras</CODE>. 862<P> 863<DL> 864<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.MATCH_YCOORDS">Constant Field Values</A></DL> 865</DL> 866<HR> 867 868<A NAME="MATCH_LATITUDES"><!-- --></A><H3> 869MATCH_LATITUDES</H3> 870<PRE> 871public static final java.lang.String <B>MATCH_LATITUDES</B></PRE> 872<DL> 873<DD>Key used to retrieve latitudes for all matching locations from the <CODE>Bundle</CODE> object 874 obtained by calling <CODE>Location.getExtras</CODE>. 875<P> 876<DL> 877<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.MATCH_LATITUDES">Constant Field Values</A></DL> 878</DL> 879<HR> 880 881<A NAME="MATCH_LONGITUDES"><!-- --></A><H3> 882MATCH_LONGITUDES</H3> 883<PRE> 884public static final java.lang.String <B>MATCH_LONGITUDES</B></PRE> 885<DL> 886<DD>Key used to retrieve longitudes for all matching locations from the <CODE>Bundle</CODE> object 887 obtained by calling <CODE>Location.getExtras</CODE>. 888<P> 889<DL> 890<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.MATCH_LONGITUDES">Constant Field Values</A></DL> 891</DL> 892<HR> 893 894<A NAME="FINAL_LOCATION_NAME"><!-- --></A><H3> 895FINAL_LOCATION_NAME</H3> 896<PRE> 897public static final java.lang.String <B>FINAL_LOCATION_NAME</B></PRE> 898<DL> 899<DD>Key used to retrieve the name of the best location estimate from the <CODE>Bundle</CODE> object 900 obtained by calling <CODE>Location.getExtras</CODE>. 901<P> 902<DL> 903<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.FINAL_LOCATION_NAME">Constant Field Values</A></DL> 904</DL> 905<HR> 906 907<A NAME="FINAL_X"><!-- --></A><H3> 908FINAL_X</H3> 909<PRE> 910public static final java.lang.String <B>FINAL_X</B></PRE> 911<DL> 912<DD>Key used to retrieve the X-coordinate of the best location estimate from the <CODE>Bundle</CODE> 913 object obtained by calling <CODE>Location.getExtras</CODE>. 914<P> 915<DL> 916<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.FINAL_X">Constant Field Values</A></DL> 917</DL> 918<HR> 919 920<A NAME="FINAL_Y"><!-- --></A><H3> 921FINAL_Y</H3> 922<PRE> 923public static final java.lang.String <B>FINAL_Y</B></PRE> 924<DL> 925<DD>Key used to retrieve the Y-coordinate of the best location estimate from the <CODE>Bundle</CODE> 926 object obtained by calling <CODE>Location.getExtras</CODE>. 927<P> 928<DL> 929<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.FINAL_Y">Constant Field Values</A></DL> 930</DL> 931<HR> 932 933<A NAME="FINAL_LAT"><!-- --></A><H3> 934FINAL_LAT</H3> 935<PRE> 936public static final java.lang.String <B>FINAL_LAT</B></PRE> 937<DL> 938<DL> 939<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.FINAL_LAT">Constant Field Values</A></DL> 940</DL> 941<HR> 942 943<A NAME="FINAL_LON"><!-- --></A><H3> 944FINAL_LON</H3> 945<PRE> 946public static final java.lang.String <B>FINAL_LON</B></PRE> 947<DL> 948<DL> 949<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.FINAL_LON">Constant Field Values</A></DL> 950</DL> 951<HR> 952 953<A NAME="ROOT_DIR_NAME"><!-- --></A><H3> 954ROOT_DIR_NAME</H3> 955<PRE> 956public static final java.lang.String <B>ROOT_DIR_NAME</B></PRE> 957<DL> 958<DL> 959<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.ROOT_DIR_NAME">Constant Field Values</A></DL> 960</DL> 961<HR> 962 963<A NAME="LOAD_FOR_AREA"><!-- --></A><H3> 964LOAD_FOR_AREA</H3> 965<PRE> 966public static final java.lang.String <B>LOAD_FOR_AREA</B></PRE> 967<DL> 968<DL> 969<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.LOAD_FOR_AREA">Constant Field Values</A></DL> 970</DL> 971<HR> 972 973<A NAME="REFRESH_URL"><!-- --></A><H3> 974REFRESH_URL</H3> 975<PRE> 976public static final java.lang.String <B>REFRESH_URL</B></PRE> 977<DL> 978<DL> 979<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.REFRESH_URL">Constant Field Values</A></DL> 980</DL> 981<HR> 982 983<A NAME="REFRESH_MAPS"><!-- --></A><H3> 984REFRESH_MAPS</H3> 985<PRE> 986public static final java.lang.String <B>REFRESH_MAPS</B></PRE> 987<DL> 988<DL> 989<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.REFRESH_MAPS">Constant Field Values</A></DL> 990</DL> 991<HR> 992 993<A NAME="REFRESH_ASYNC"><!-- --></A><H3> 994REFRESH_ASYNC</H3> 995<PRE> 996public static final java.lang.String <B>REFRESH_ASYNC</B></PRE> 997<DL> 998<DL> 999<DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#com.whereabout.location.LocationManager.REFRESH_ASYNC">Constant Field Values</A></DL> 1000</DL> 1001 1002<!-- ========= CONSTRUCTOR DETAIL ======== --> 1003 1004<A NAME="constructor_detail"><!-- --></A> 1005<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 1006<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 1007<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 1008<B>Constructor Detail</B></FONT></TH> 1009</TR> 1010</TABLE> 1011 1012<A NAME="LocationManager(Context)"><!-- --></A><H3> 1013LocationManager</H3> 1014<PRE> 1015public <B>LocationManager</B>(Context context)</PRE> 1016<DL> 1017<DD>Creates a new LocationManager object setting the root directory to the default value of 1018 "/sdcard/wifiscans". 1019<P> 1020<DL> 1021<DT><B>Parameters:</B><DD><CODE>context</CODE> - The activity context</DL> 1022</DL> 1023<HR> 1024 1025<A NAME="LocationManager(Context, ComponentName, java.lang.String)"><!-- --></A><H3> 1026LocationManager</H3> 1027<PRE> 1028public <B>LocationManager</B>(Context context, 1029 ComponentName wifiService, 1030 java.lang.String rootDirPath)</PRE> 1031<DL> 1032<DD>Creates a new LocationManager object setting the root directory to the specified path. 1033<P> 1034<DL> 1035<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 1036 saved and read from for localization</DL> 1037</DL> 1038 1039<!-- ============ METHOD DETAIL ========== --> 1040 1041<A NAME="method_detail"><!-- --></A> 1042<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> 1043<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> 1044<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> 1045<B>Method Detail</B></FONT></TH> 1046</TR> 1047</TABLE> 1048 1049<A NAME="addGpsStatusListener(GpsStatus.Listener)"><!-- --></A><H3> 1050addGpsStatusListener</H3> 1051<PRE> 1052public boolean <B>addGpsStatusListener</B>(GpsStatus.Listener listener)</PRE> 1053<DL> 1054<DD>Delegates to <CODE>android.location.LocationManager</CODE>. 1055<P> 1056<DD><DL> 1057</DL> 1058</DD> 1059</DL> 1060<HR> 1061 1062<A NAME="addProximityAlert(double, double, float, long, PendingIntent)"><!-- --></A><H3> 1063addProximityAlert</H3> 1064<PRE> 1065public void <B>addProximityAlert</B>(double latitude, 1066 double longitude, 1067 float radius, 1068 long expiration, 1069 PendingIntent intent)</PRE> 1070<DL> 1071<DD>Delegates to <CODE>android.location.LocationManager</CODE>. 1072<P> 1073<DD><DL> 1074</DL> 1075</DD> 1076</DL> 1077<HR> 1078 1079<A NAME="addTestProvider(java.lang.String, boolean, boolean, boolean, boolean, boolean, boolean, boolean, int, int)"><!-- --></A><H3> 1080addTestProvider</H3> 1081<PRE> 1082public void <B>addTestProvider</B>(java.lang.String name, 1083 boolean requiresNetwork, 1084 boolean requiresSatellite, 1085 boolean requiresCell, 1086 boolean hasMonetaryCost, 1087 boolean supportsAltitude, 1088 boolean supportsSpeed, 1089 boolean supportsBearing, 1090 int powerRequirement, 1091 int accuracy)</PRE> 1092<DL> 1093<DD>Delegates to <CODE>android.location.LocationManager</CODE>. 1094<P> 1095<DD><DL> 1096</DL> 1097</DD> 1098</DL> 1099<HR> 1100 1101<A NAME="clearTestProviderEnabled(java.lang.String)"><!-- --></A><H3> 1102clearTestProviderEnabled</H3> 1103<PRE> 1104public void <B>clearTestProviderEnabled</B>(java.lang.String provider)</PRE> 1105<DL> 1106<DD>Delegates to <CODE>android.location.LocationManager</CODE>. 1107<P> 1108<DD><DL> 1109</DL> 1110</DD> 1111</DL> 1112<HR> 1113 1114<A NAME="clearTestProviderLocation(java.lang.String)"><!-- --></A><H3> 1115clearTestProviderLocation</H3> 1116<PRE> 1117public void <B>clearTestProviderLocation</B>(java.lang.String provider)</PRE> 1118<DL> 1119<DD>Delegates to <CODE>android.location.LocationManager</CODE>. 1120<P> 1121<DD><DL> 1122</DL> 1123</DD> 1124</DL> 1125<HR> 1126 1127<A NAME="clearTestProviderStatus(java.lang.String)"><!-- --></A><H3> 1128clearTestProviderStatus</H3> 1129<PRE> 1130public void <B>clearTestProviderStatus</B>(java.lang.String provider)</PRE> 1131<DL> 1132<DD>Delegates to <CODE>android.location.LocationManager</CODE>. 1133<P> 1134<DD><DL> 1135</DL> 1136</DD> 1137</DL> 1138<HR> 1139 1140<A NAME="getAllProviders()"><!-- --></A><H3> 1141getAllProviders</H3> 1142<PRE> 1143public java.util.List<java.lang.String> <B>getAllP…
Large files files are truncated, but you can click here to view the full file