Original Author Paul Laughton, 2011
Page 142
De Re BASIC!
Device. Locale <svar>
Returns the default locale code of the device in standard Locale format, typically including the language
and country codes.
This convenience shortcut returns the same value as the "Locale" key of the Bundle returned by the
numeric form of the Device command.
Phone.info <nexp>|<nvar>
Returns information about the telephony radio in your Android device, if it has one. The information is
placed in a Bundle. If you provide a variable that is not a valid Bundle pointer, the command creates a
new Bundle and returns the Bundle pointer in your variable. Otherwise it writes into the Bundle your
variable or expression points to.
The Bundle keys and possible values are in the table below. Each entry's type is either N (Numeric) or S
(String).
Key
Type
Values
Meaning
Example
PhoneType
S
GSM, CDMA, SIP, or None
Type of phone radio in this
device
GSM
NetworkType
S
GPRS, EDGE, UMTS, CDMA,
EVDOrev0, EVDOrevA,
1xRTT, HSDPA, HSUPA, HSPA,
iDen, EDVOrevB, LTE, EHRPD,
HSPAP+, or Unknown
Network type of the current
data connection
LTE
The PhoneType is the same as that returned by the Device command. It is static.
If the PhoneType is GSM and the phone is registered to a network, the Phone.info command also
returns the following items in the Bundle:
Key
Type
Values
Meaning
Example
CID
N
A positive number
or -1 if CID is unknown
GSM Cell ID
342298497
LAC
N
A positive number
or -1 if LAC is unknown
GSM Location Area Code
11090
MCC/MNC
S
String of 5 or 6 decimal digits
The "numeric name" of the
registered network operator
310260
Operator
N
A name string
The name of the operator of
the registered network
T-Mobile
The "numeric name" is made up of the Mobile Country Code (MCC) and Mobile Network Code (MNC).