Class CellInfo


  • public class CellInfo
    extends java.lang.Object
    Contains information about the anthena that this cell phone is receiving signal. Used by the GPS class.
    Since:
    TotalCross 1.22
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String cellId  
      static java.lang.String lac  
      static java.lang.String mcc  
      static java.lang.String mnc  
      static int signal  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void finalize()  
      static boolean isSupported()  
      static double[] toCoordinates()
      Converts the current cellId and lac into the latitude and longitude.
      static void update()  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • cellId

        public static java.lang.String cellId
      • mnc

        public static java.lang.String mnc
      • mcc

        public static java.lang.String mcc
      • lac

        public static java.lang.String lac
      • signal

        public static int signal
    • Method Detail

      • update

        public static void update()
      • finalize

        protected void finalize()
        Overrides:
        finalize in class java.lang.Object
      • isSupported

        public static boolean isSupported()
      • toCoordinates

        public static double[] toCoordinates()
                                      throws java.lang.Exception
        Converts the current cellId and lac into the latitude and longitude. You need to manually update the values by calling the update method. This method requires direct connection to the internet and uses the google mmap service.
        Throws:
        java.lang.Exception
        Since:
        TotalCross 1.3