안드로이드 : GPS 사용 가능 여부
프로그래밍/Android 2010. 12. 3. 22:56 |만약 설정에서 GPS 를 disable 시킨 상태라면 false 가 리턴 됨.
Indicates whether network connectivity is possible. A network is unavailable when a persistent or semi-persistent condition prevents the possibility of connecting to that network. Examples include
true
if the network is available, false
otherwiseIndicates whether network connectivity exists and it is possible to establish connections and pass data.
true
if network connectivity exists, false
otherwise.boolean
1-bit. May take on the values true
and false
only.
true
and false
are defined constants of the language and are not the same as True
and False
, TRUE
and FALSE
, zero and nonzero, 1 and 0 or any other numeric value. Booleans may not be cast into any other type of variable nor may any other variable be cast into a boolean.
byte
1 signed byte (two's complement). Covers values from -128 to 127.
short
2 bytes, signed (two's complement), -32,768 to 32,767
int
4 bytes, signed (two's complement). -2,147,483,648 to 2,147,483,647. Like all numeric types ints may be cast into other numeric types (byte, short, long, float, double). When lossy casts are done (e.g. int to byte) the conversion is done modulo the length of the smaller type.
long
8 bytes signed (two's complement). Ranges from -9,223,372,036,854,775,808 to +9,223,372,036,854,775,807.
float
4 bytes, IEEE 754. Covers a range from 1.40129846432481707e-45 to 3.40282346638528860e+38 (positive or negative).
Like all numeric types floats may be cast into other numeric types (byte
, short
, long
, int
, double
). When lossy casts to integer types are done (e.g. float
to short
) the fractional part is truncated and the conversion is done modulo the length of the smaller type.
double
char
2 bytes, unsigned, Unicode, 0 to 65,535
Chars are not the same as bytes, ints, shorts or Strings.
안드로이드로 날짜를 산수해 보다가 ...
2010년 8월 31일을 넣었는데, 이상하게 계속 2010 년 9월 1일이 찍히는 희한한 일이 있었다.
- 영어가 konglish 임 ㅠㅠㅠㅠㅠㅠ
- 코드에 영혼을 담으려 하였으나, 일부 미숙할 수 있음