-
public final class CellLocationSourceAttempts to fetch fresh CellLocation using cell location listener. If this approach fails then looks to cache in TelephonyManager.
-
-
Constructor Summary
Constructors Constructor Description CellLocationSource()
-
Method Summary
Modifier and Type Method Description final CellLocationget(TelephonyManager telephonyManager, Integer subId)Registers a cell location listener and awaits data. -
-
Method Detail
-
get
@RequiresPermission(allOf = {android.permission.ACCESS_FINE_LOCATION}) final CellLocation get(TelephonyManager telephonyManager, Integer subId)
Registers a cell location listener and awaits data. After 1000 milliseconds time outs if nothing is delivered.
On Android O and newer directly grabs ServiceState from TelephonyManager.
-
-
-
-