Package totalcross.phone
Class CellInfo
- java.lang.Object
-
- totalcross.phone.CellInfo
-
public class CellInfo extends java.lang.ObjectContains information about the anthena that this cell phone is receiving signal. Used by the GPS class.- Since:
- TotalCross 1.22
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinalize()static booleanisSupported()static double[]toCoordinates()Converts the current cellId and lac into the latitude and longitude.static voidupdate()
-
-
-
Method Detail
-
update
public static void update()
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.lang.Object
-
isSupported
public static boolean isSupported()
-
toCoordinates
public static double[] toCoordinates() throws java.lang.ExceptionConverts the current cellId and lac into the latitude and longitude. You need to manually update the values by calling theupdatemethod. This method requires direct connection to the internet and uses the google mmap service.- Throws:
java.lang.Exception- Since:
- TotalCross 1.3
-
-