반응형

이번 포스팅은 (http://developer.android.com/training/building-wearables.html) 을 참고하여 작성되었다.


Wearable App 을 개발 관련으로 다음의 3가지 카테고리로 분류되어 있다.

1) Handheld의 notification을 wearables 로 동기화 하는 것과 wearables 에서 이들을 잘 보여 주는 것

2) Wearable App 을 개발하는 것

3) 데이터를 보내고 동기화 하는 것


이중 2)에 대해서 이야기를 진행하고자 한다.


wearable app 은 wearable hardware(sensors, GPU 등)을 직접 접근할수 있다. Android SDK로 만들어지는 App 과 동일한데, wearable 특성에 따른 몇가지 제약조건이 있다.

  • wearable 은 timeout 을 강제하고, activity 가 보여지고 있었던 상태에서 유저가 반응하지 않으면 sleep 모드로 들어간다. sleep 모드에서 깨어날 경우 wear home screen이 보여진다.
  • wearable app은 상대적으로 작은 사이즈와 적은 기능을 가진다. 
  • 유저는 wearable 로 직접 앱을 다운로드 할수 없다. handheld app 안에 wearable app을 번들로 제공해야 한다. handheld app을 설치할때 자동적으로 wearable app도 설치되게 된다. (개발 목적으로는 직접 다운로드 할수 있음) wearable 은 google에서 제공하는 companion handheld app에서 자동으로 설치해준다.
  • 대부분 android api를 제공하나 다음은 제공하지 않는다.

- android.webkit

- android.print

- android.app.backup

- android.appwidget

- android.hardware.usb


PC에서 개발을 위한 가상 device를 제공한다. (android wear virtual device) 가상 Device를 이용하는 방법은 다음의 링크에서 확인할수 있다. (http://developer.android.com/training/wearables/apps/creating.html)


Libraries 는 다음의 상황에서 각각에 라이브러리들이 필요하다. android studio 에서 라이브러리 설치할테 다 설치 해두는게 좋다.

  • Notification : Android V4 support library
  • Werable Data Layer : 최신의 Google Play services 라이브러리
  • Wearable UI support library : unofficial library 임






반응형
Posted by alias
,