아틴
Atin
아틴
전체 방문자
오늘
어제
  • 분류 전체보기 (460)
    • Devlopment (246)
      • 정리 글 (20)
      • MicroServices (0)
      • Reactive, Concurrenc.. (12)
      • Java (44)
      • Spring (20)
      • C,C++,Ruby,Python (52)
      • Mobile (39)
      • Web (35)
      • Tip & Info (14)
      • Unit Test (7)
    • Infra (44)
      • OS (21)
      • RDBMS (13)
      • NoSQL&Cache (5)
      • AWS (4)
    • Computer Science (11)
    • Etc (156)

블로그 메뉴

  • Home
  • Guestbook

공지사항

인기 글

태그

  • C
  • jsp
  • 던젼 앤 드래곤즈
  • Dungeons & Dragons
  • mysql
  • 정읍
  • Android
  • TRPG
  • 여행
  • Ruby on Rails
  • Linux
  • 자바
  • Python
  • 전라도
  • 해킨토시
  • Java
  • javascript
  • 아이폰
  • CSS
  • 안드로이드

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
아틴

Atin

Devlopment/Mobile

Android Sensor 활용

2011. 6. 22. 14:25
반응형
Sensor의 경우에는 Primission이 없다.
Sensor는 상대적으로 밧데리 소모량이 적고 개인정보와도 무관하기 때문인것 같다.

Sensor 식별자

[1]에서 퍼온 식별자이다.
문제는 SENSOR_ALL과 같은 것은 버전 2 이하에서 쓰던 것이다. 2.0이상부터는 TYPE_으로 시작한다.

Constants
int TYPE_ACCELEROMETER A constant describing an accelerometer sensor type.
int TYPE_ALL A constant describing all sensor types.
int TYPE_GRAVITY A constant describing a gravity sensor type.
int TYPE_GYROSCOPE A constant describing a gyroscope sensor type
int TYPE_LIGHT A constant describing an light sensor type.
int TYPE_LINEAR_ACCELERATION A constant describing a linear acceleration sensor type.
int TYPE_MAGNETIC_FIELD A constant describing a magnetic field sensor type.
int TYPE_ORIENTATION This constant is deprecated. use SensorManager.getOrientation() instead.
int TYPE_PRESSURE A constant describing a pressure sensor type
int TYPE_PROXIMITY A constant describing an proximity sensor type.
int TYPE_ROTATION_VECTOR A constant describing a rotation vector sensor type.
int TYPE_TEMPERATURE A constant describing a temperature sensor type


Heading
X축을 기준으로 회전 방향을 나타냄
0 : North
90 : East
190 : South
270 : West

Pitch
Y축을 기준으로 회전방향을 나타냄
0 : 수평
-90 : 수직(머리가 하늘로)
180 : 뒤집어짐

Roll
Z축을 기준으로 회전방향을 나타냄 
0 : 수평
90 : 화면이 오른쪽으로 향함


Reference
[1] Android.com - http://developer.android.com/reference/android/hardware/Sensor.html 
반응형

'Devlopment > Mobile' 카테고리의 다른 글

안드로이드 GPS 위치 수신  (0) 2011.07.12
Android 타이틀 바 관련.  (0) 2011.07.11
안드로이드 ListView구현시 Adapter의 getView 중복 호출 문제  (0) 2011.07.11
[Android] 알림 - AlertDialog, Toast  (0) 2011.06.27
모바일상에서의 Network Programming  (1) 2011.06.23
Android 진동 다루기  (0) 2011.06.22
Android Camera  (0) 2011.06.22
Android Drawing  (0) 2011.06.21
안드로이드 OS Version 및 이름  (0) 2011.06.20
Eclipse에서 안드로이드 개발시 Device가 안 잡힐 경우  (0) 2011.06.17
    'Devlopment/Mobile' 카테고리의 다른 글
    • [Android] 알림 - AlertDialog, Toast
    • 모바일상에서의 Network Programming
    • Android 진동 다루기
    • Android Camera
    아틴
    아틴

    티스토리툴바