ããã°ç§»è»¢ãããã¾ãã
ãã®åº¦ãæ°ããããã°ã«ç§»è»¢ãããã¨ã¨ãªãã¾ããã
æ°ããããã°ã§ã¯ãAndroidã ãã§ãªã
ä»ã®æè¡ãã¬ã³ãããå±ããã¦ã¾ããã¾ãã
æ°URL
http://bril-tech.blogspot.jp/
æ°RSS
http://bril-tech.blogspot.com/feeds/posts/default
ãææ°ãããã¾ãããåç»é²ããé¡ããããã¾ãã
ã©ãããããããé¡ãè´ãã¾ãã
Android Wear Developer Preview éçºç°å¢æ§ç¯
æ©ããçºå£²ãå¾ ã¡é ããAndroid Wearã®ç«¯æ«ã§ããã端æ«ãè²·ã£ã¦ããç°å¢ãæ´ãã¦ãããéçºè ã¨ãã¦æ¥½ããã¾ããã
ã¨ãã¥ã¬ã¼ã¿ã使ã£ã¦éçºãã§ããã®ã§ç°å¢æ§ç¯æé ãç´¹ä»ãã¾ãã
ç¾æç¹ã§ã¯è²ã
å¶éããããKitkatãæè¼ãããå®æ©ã¨çµã¿åãããªãã¨ã¨ãã¥ã¬ã¼ã¿ã使ã£ãéçºãã§ããªãã®ã§ã注æãã ããã
4.4.2以éã®AVDã使ã£ã¦ã´ãã§ã´ãã§ãã¦ã¨ãã¥ã¬ã¼ã¿ã2åç«ã¡ä¸ããã°ä½ã¨ãã§ããããªæ°ã¯ãã¾ããããã§ã¯ç´¹ä»ãã¾ããã
ããã¾ããªæµã
- Android Wear Developer Previewã«ç»é²
- ãã¹ãç¨ã®ã¢ããªãå®æ©ã«ã¤ã³ã¹ãã¼ã«
- Android SDKã®ç°å¢ãæ´ãã
- Wearã®ã¨ãã¥ã¬ã¼ã¿ã¨å®æ©ãæ¥ç¶
Android Wear Developer Previewã«ç»é²
Get Started with the Developer Previewã«ç§»åãã
ã®ãã¿ã³ãã¯ãªãã¯ãã¾ãã
å©ç¨è¦ç´ã®åæãæ±ãããã¾ããåºæ¬çã«ã¡ã¼ã«ã¢ãã¬ã¹ã¨å©ç¨è¦ç´ã®åæã ãã§ããã®ã§ããã注æç¹ãããã¾ãã
Important: Your email address is used to provide your Google account access to the Android Wear Preview app Beta Preview on Google Play Store. As such, the email address you provide below must be for the account you use to download apps on Google Play Store. We may also use your email address to provide you with updates about the Android Wear platform release.
ã¨æ¸ããã¦ããããã«ããã¹ãã¢ããªãGoogle Playããå®æ©ã«ã¤ã³ã¹ãã¼ã«å¯è½ãªGoogleã¢ã«ã¦ã³ãã®ã¡ã¼ã«ã¢ãã¬ã¹ãå ¥åããå¿ è¦ãããã¾ããéãã¢ãã¬ã¹ãå ¥åãã¦ãã¾ãã¨ãã¹ãã«å¿ è¦ãªã¢ããªãã¤ã³ã¹ãã¼ã«ã§ããªãã®ã§æ³¨æãå¿ è¦ã§ãã
ãµã¤ã³ã¢ãããå®äºãã¦ãã°ããããã¨å
¥åããã¡ã¼ã«ã¢ãã¬ã¹ã«ãããªã¡ã¼ã«ãå±ãã¾ãã
ããè¦ãã¨æ·»ä»ãã¡ã¤ã«ã§AndroidWearPreview.zipã¨ãã3.2MBã»ã©ã®ãã¡ã¤ã«ããã£ã¤ãã¦ãã¾ãã
ããã¯Google Driveã®ä½¿ãæã®ã¢ãã¼ã«ãªã®ã§ããããã
AndroidWearPreview.zipã®ä¸èº«ã¯
- ãµã³ãã«ããã¸ã§ã¯ãï¼ã¤
- ElizaChatã¨ãããã£ããã¢ããª
- WearableNotificationsSampleã¨ããéç¥ã®ãµã³ãã«ã¢ããª
- RecipeAssistantã¨ããã¢ããª
- wearable-preview-support.jarã®Android Wearã®ãµãã¼ãã©ã¤ãã©ãª
ãå
¥ã£ã¦ãã¾ãã
ããã¸ã§ã¯ãã¯Gradleãã¼ã¹ãªã®ã§ãAndroid Studioã使ã£ãã»ããã¹ã ã¼ãºã«åãè¾¼ããã¨æãã¾ãã
ããã¦ãã¹ã¿ã¼ã¨ãã¦ç»é²ããããã«ã¡ã¼ã«ã®ä¸ã®ãOpt-in to become a testerããã¯ãªãã¯ãã¾ãã
注æç¹ã¨ãã¦ã¯ã¡ã¼ã«ã¢ãã¬ã¹ã¨åãã¢ã«ã¦ã³ãã§ãã°ã¤ã³ãã¦ããå¿
è¦ãããã¾ããã¾ããGoogle ã¢ã«ã¦ã³ãããã«ãã¢ã«ã¦ã³ãç¶æ
ã§è¤æ°ãã°ã¤ã³ãã¦ããå ´åã¯ä¸æãåããªããã¨ããããããªã®ã§ããã®å ´åã¯è©²å½ã¢ã«ã¦ã³ãä¸ã¤ã ãã§ãã°ã¤ã³ãã¦ããç¶æ
ã«ãã¦ããã¨ããã¨æãã¾ãã
ãã¾ãããã¨ãã®ãããªç»é¢ã«ãªãã®ã§ãçãä¸ã«ããBECOME A TESTERãã¯ãªãã¯ãã¾ãããã
ç»é²ããã¾ãè¡ãã°ããã®ããã«ãã¹ã¿ã¼ç»é²å®äºã§ãã
ãã¹ãç¨ã®ã¢ããªãå®æ©ã«ã¤ã³ã¹ãã¼ã«
ã¤ãã§ã«ã¢ããªããDownload Android Wear Preview from the Play Storeãã®ãªã³ã¯ããã¤ã³ã¹ãã¼ã«ãã¦ããã¾ãã4.4.2以ä¸ã®ãã¼ã¸ã§ã³ã®ç«¯æ«(Nexus 4ãNexus 5ç)ã«ã¤ã³ã¹ãã¼ã«ãã¦ãã ããã
â»ãã¹ã¿ã¼ç»é²ããã¦ããªãã¢ã«ã¦ã³ãã§ã¢ã¯ã»ã¹ããã¨404ã«ãªãã¾ãã
Android SDKã®ç°å¢ãæ´ãã
Android SDK Managerã使ã£ã¦ãå¿
è¦ãªã¢ãããã¦ã³ãã¼ããã¾ãã
ãµã³ãã«ããã¸ã§ã¯ããGradleãã¼ã¹ã®ãããEclipseã§ã¯ãªãAndroid Studioã使ã£ãã»ããããã§ããAndroid Stduioãã¿ã³ã¹ã®å¥¥ã«ãã¾ã£ã¦ãã£ã¦ããã¼ã¸ã§ã³ãå¤ãã¾ã¾ã ã£ãå ´åã¯ææ°ã«ãã¦ããã¾ãããã
- Android SDK Tools revision 22.6以é
- Android Wear ARM EABI v7a System Image
- Android Support Libraryã®ææ°ç
- Android Support Repository
ããã¦ã³ãã¼ããæ´æ°ãã¦ãã ããã
ãã¦ã³ãã¼ããçµãã£ãããAVD Managerã使ã£ã¦Android Wearã®å®æ©ã®VMãä½æãã¾ãã
Newãã¿ã³ããæ°è¦ä½æãã以ä¸ã®ããã«åé
ç®ãè¨å®ãã¾ãã
- Device
- ãAndroid Wear Round (320 x 320: hdpi)ãããAndroid Wear Square (280 x 280: hdpi)ããé¸æ
- CPU/ABI
- Android Wear ARM (armeabi-v7a)
- Target
- Skin
- AndroidWearRound ã¾ã㯠AndroidWearSquare
- SD Card
- 100 ããã(ä»»æ)
OKãã¿ã³ãæ¼ãã¦ãªã¹ãããä½æããAVDãé¸ãã§Startãã¦ã¨ãã¥ã¬ã¼ã¿ãèµ·åããã¾ãã
èµ·åã«ã¯çµæ§æéããããã¾ãã
- èµ·åä¸ã®ç»é¢
- èµ·åå®äºãå³æ°ãªãç»é¢ã§ããã
Wearã®ã¨ãã¥ã¬ã¼ã¿ã¨å®æ©ãæ¥ç¶
å®æ©ã«ã¤ã³ã¹ãã¼ã«ãã¦ãããAndroid Wear Previewããèµ·åããã¦ããã¾ãã
éãã¨ãªã¢ãã¿ããããã¨ãã®ç»é¢ã«åãæ¿ããã®ã§ãã§ãã¯ããã¯ã¹ããã§ãã¯ãã¾ãã
ãã§ãã¯ããã¨ä»¥ä¸ã®ããã«è¦åãã¤ã¢ãã°ãåºã¾ãããOKãé¸æãã¾ãã
ãã§ãã¯ãä»ãããããã¯ãã¼ã§æãã¾ãã
ãã®ç»é¢ã«ãªã£ããCancelãã¿ã³ãæ¼ãã¦Not connectedã®ç¶æ
ã«ãã¦ããã¾ãã
å®æ©ãPCã¨USBæ¥ç¶ãã以ä¸ã®abdã³ãã³ããããã³ããããå®è¡ãã¾ãã
adb -d forward tcp:5601 tcp:5601
ããã¦å®æ©å´ã§Connectãã¿ã³ãæ¼ãã¨æ¥ç¶ãããã¦ãConnectedãã«ãªãã¯ãã§ãã
ããã§AndroidWearã®ã¨ãã¥ã¬ã¼ã¿ã¨å®æ©ã®ãã¢ãªã³ã°ãã§ãã¾ããã
å®æ©ã®NotificationãAndroidWearã®ã¨ãã¥ã¬ã¼ã¿ä¸ã«è¡¨ç¤ºãããããã«ãªãã¾ãã
è¿ä¿¡ãªã©ãå¯è½ã§ãã
ç¾æç¹ã§ã¯é³å£°å
¥åã«å¯¾å¿ãã¦ããªãã®ãæ®å¿µã
ããã§ã»ããã¢ããå®äºã§ãã
次åããAndroid Wearã®APIããã¢ããªã®éçºæ¹æ³ãã¯ãã¼ãºã¢ãããã¦ããã¾ãï¼
Android Wearãã¥ã¼ã¹è¨äºã¾ã¨ã
æ¬æ¥å
¬éãããã°ãããªã®ã«è¨äºãããªãå¤ãã§ããã
ä¹
ã
ã®å¢ããæãã¾ãã
- Google、スマートウォッチOS、Android Wearを発表―最初の製品はLG ‘G’とMotorola Moto 360
- Motorola、Moto 360を発表―Android Wear搭載のファッショナブルなスマートウォッチ、今夏発売へ | TechCrunch Japan
- グーグル、ウェアラブル製品向けOS「Android Wear」を発表--スマートウォッチからまずは展開 - CNET Japan
- Google、Androidをウェアラブルに拡張するAndroid Wear 発表。年内に各社からスマートウォッチ発売 - Engadget Japanese
- モトローラ Moto 360発表、Android Wear対応スマートウォッチ。今夏に世界で発売 - Engadget Japanese
- 米Google、ウェアラブルプラットフォーム「Android Wear」を発表 -INTERNET Watch
- Google、ウェアラブル向け「Android Wear」発表 今夏に製品登場 - ITmedia PC USER
- ASCII.jp:グーグルがAndroid Wear発表、腕時計型端末が今夏発売
- グーグルが「Android Wear」発表、LGからスマートウォッチ - ケータイ Watch
- ニュース - GoogleのウエアラブルOS「Android Wear」、LGやMotorolaがスマートウォッチを投入へ:ITpro
- MotorolaとLGがAndroid Wearスマートウォッチの開発を発表 | マイナビニュース
- Android Wearは腕時計を変えるか? Googleがスマートウォッチに参入
- ASCII.jp:ついにウェアラブルデバイスが本格始動、Android公式スマートウォッチ発表
- ビジネスニュース 企業動向:Appleよりも先に――Googleが新プラットフォームでスマートウオッチ開発へ - EE Times Japan
- Google Watchに期待はできるか? ― 悪くなさそうだ | THE NEW CLASSIC
ã¦ã§ã¢ã©ãã«æ©å¨éçºã®æ¬å½ãAndroid Wearç»å ´
2週間近く前にGoogleのSundar Pichai氏がSXSWのイベントでAndroidのウェアラブル機器のSDKをリリースするという話ããã¦ããã®ã§ããã宣è¨éãã«éçºè åããã¬ãã¥ã¼çã®SDKãæ¬æ¥å ¬éããã¾ããã
Android Wearã¨ã¯
Android Wearã¨ã¯Androidæè¼ã¹ãã¼ããã©ã³ã¨é£æºãã¦åä½ããã¦ã§ã¢ã©ãã«ããã¤ã¹ã®ãã¨ãæãããã§ãã
ç¾æ®µéã§ã¯è
æè¨ã ãã対象ã®ããã§ãããä»å¾ä»ã®ã¦ã§ã¢ã©ãã«æ©å¨ã«ãåºãã¦ããã¨ã®ãã¨ã
é³å£°ã§ã®ããã¹ãå
¥åãã¿ããããã«ã§ã®æä½ãå¯è½ãªããã§ãã
詳細ãªãã¼ãã¦ã§ã¢ä»æ§ã¯ã¾ã å
¬éããã¦ãã¾ããã
æãã6/25-6/26ã«ãµã³ãã©ã³ã·ã¹ã³ã§éå¬ãããGoogle I/O 2014ã§ããã¤ã¹ããç®è¦ããããã¨ã«ãªãã¨æãã¾ãã
モトローラが夏にAndroid Wear端末Moto 360を発売するã¨çºè¡¨ãã¦ããã®ã§æãããã®ã¢ãã«ãGoogle I/Oåå è ã«é å¸ããããã¨ã«ãªãã®ã§ã¯ãªããã¨äºæ³ãã¦ãã¾ãã
ã¾ãã¯å©ç¨ã·ã¼ã³ã®ç´¹ä»åç»ã
éçºè
åãåç»
ä¸ã®ç»åã¯åç»ããæãåºãããã®ã§ãããGoogle Nowã§ä½¿ããæ©è½ãã»ã¨ãã©ä½¿ããããã§ãã天æ°äºå ±ãçµè·¯æ¤ç´¢ãé³å£°å ¥åã§Hangoutã§ããã¹ããã£ãããã§ãã¦ãã模æ§ã
UIã®åä½ã¤ã¡ã¼ã¸ã¯ãããªæãã§ãã
ç»é¢ãå°ããã®ã§åºæ¬æä½ã¯ã¹ã¯ã¤ããé³å£°å
¥åã«ã対å¿ãã¦ãã¾ãã
ãOk googleãã¨è©±ããããã¨ãããããã¢ããªã¨ã¤ã³ã¿ã¼ãããã¸ã®éãéãã¾ãã
ã¾ãã¯æ¦è¦ã ããå±ããã¾ããããéçºè è¦ç¹ã®è¨äºãéææ´æ°ãã¦ããã¾ãã®ã§ã楽ãã¿ã«ã
ã¡ãªã¿ã«ã·ã³ã¯ããã·ãã£ãªã®ãã©ãããããã¾ããããå¶ç¶ã«ã(ï¼)2æ¥ã»ã©åã«Tizené£å¶ãããTizen Software Developer Kit for Wearablesã¨ããã¹ãã¼ãã¦ã©ããåãã®SDKããªãªã¼ã¹ããã¦ãã¾ãã
GoogleGlassã®è¦ç·ï¼ã«ã¡ã©ãã¬ãã¥ã¼ï¼ãiPad ã§ãªã¢ã«ã¿ã¤ã ã«å ±æãã¦ããã¤ãæ示ãéã£ã¦ã¿ãããã®ä¸
Glassã身ã«ã¤ãã¦ãã人ã®è¦ç·ï¼ã«ã¡ã©ãã¬ãã¥ã¼ï¼ããªã¢ã«ã¿ã¤ã ã«å ±æã§ãããã¨ã¦ã便å©ã¨æãã¾ãããï¼
æ´ã«ãäºãã«ä½ãã®ã¢ã¯ã·ã§ã³ãããã¨ãã§ãããã©ããªã«ç´ æµã§ãããããã¾ãã¾ãªä»äºãã¨ã³ã¿ã¼ãã¤ã¡ã³ãã«å¿ç¨ã§ããã¯ãã§ãã
ã¨ãããã¨ã§ãGlass ã®è¦ç·ãiPadã§å ±æããã¤ãã§ã«ãiPadããGlassã«å¯¾ãã¦æ示ãéããµã³ãã«ãä½ã£ã¦ã¿ã¾ãããããããè¦ã¦ï¼ãã¨ããæ示ãé£ã¶ããã«ãã¾ãã
ã¢ããªã®æµãã¯ä»¥ä¸ã®ããã«ãªãã¾ãã
- GlassããiPadã«ã«ã¡ã©ãã¬ãã¥ã¼ãéä¿¡ãç¶ããã
- iPadã§ã¯Glassããéããã¦æ¥ãã¤ã¡ã¼ã¸ã表示ããã
- iPadã§è¡¨ç¤ºããã¦ããã¤ã¡ã¼ã¸ãã¿ããããã¨ãGlassã«ã¿ãããã座æ¨ãéä¿¡ããã
- Glassã§ã¯iPadããéããã¦æ¥ã座æ¨ã«åãæç»ããã
å ã«è¨ã£ã¦ããã¨ãä»åã¯timeline + Cardã®ä»çµã¿ã¯ä½¿ãã¾ããã
Activityã使ã£ã¦ã¡ã¤ã³ã³ã³ãã³ãã®æç»ãè¡ãã¾ãã
ä½æ ãã¨è¨ãã¨ãCard å ã® SurfaceView ã«ã¯ã¢ã¯ã»ã¹ãã§ããªãçºãã«ã¡ã©ãã¥ã¼ã Card ã® SurfaceView ã«ã¬ã³ããªã³ã°ããã¨ããã¾ã§ã¯ã§ãã¾ããããã®ä¸ã«ä½ãç¬èªã®æç»ãè¡ãäºãå°é£ã ããã§ãã
ãã®ã¢ããªã¯ããã¯ã°ã©ã¦ã³ãã§å®è¡ããå¦çãããã¤ããããåãããã¯ã¼ã¯ã®ç¥èãå¿ è¦ã§ããçºãããç¨åº¦ã®éçºã¹ãã«ãè¦æ±ããã¾ãããã®çºãå ¨ã¦ã解説ããã®ã¯å°é£ã§ãããããç¨åº¦çç¥ããªããæ¸ãã¾ãã
ã¾ãã¯ã¢ããªãä½æããä¸ã§å¿ è¦ãªè¦ç´ ãé¨åæ¯ã«åãã¦èª¬æãã¾ãã
éè¦ãªé¨åã¨ãã¦ä»¥ä¸ãæãããã¾ãã
- Cardã§ã¯ãªããActivityã使ã£ã¦Glassã¢ããªãæ§ç¯ãã
- ã«ã¡ã©ãã¬ãã¥ã¼ãåå¾ãæç»ãã
- æç»ããã«ã¡ã©ãã¬ãã¥ã¼ã®ä¸ã«åãæç»ãã
- ã«ã¡ã©ã¤ã¡ã¼ã¸ãiPadã¸éä¿¡ãã
- iPadãã座æ¨ãåä¿¡ãã座æ¨ã«åãæã
å°ãGlassã®è§£èª¬ã«çãçµãããã®ã§iPadå´ã®ã³ã¼ãã«ã¤ãã¦ã¯ããã§ã¯è§£èª¬ãã¾ããã
Activityã使ã£ã¦ã¢ããªãæ§ç¯ãã
ããã«é¢ãã¦ä»¥åæ¸ãã¾ããã
http://d.hatena.ne.jp/bs-android/20140128/1390874828
ã«ã¡ã©ãã¬ãã¥ã¼ãåå¾ãæç»ãã
Androidã¨åããCameraã¯ã©ã¹ã使ã£ã¦å®ç¾ãããã¨ãã§ãã¾ãã
注æãã¹ãç¹ã¨ãã¦ã¯ãã«ã¡ã©ãã©ã¡ã¼ã¿è¨å®æã®FpsRangeã¨Sizeã®è¨å®å¤ã§ããGlassã¯ä»ã®ã¨ããä¸æ©ç¨®ããç¡ãã®ã§ã以ä¸ã®ãããªè¨å®ã§è¯ãã§ãããã
Camera.Parameters params = mCamera.getParameters(); params.setPreviewFpsRange(30000, 30000); params.setPreviewSize(640,360);
ã«ã¡ã©ãã¬ãã¥ã¼ã®ä¸ã«åãæç»ãã
ã¨ãããããSurfaceViewãéãåããã¦å®ç¾ããã¨ãã¾ãã
ã«ã¡ã©ãã¬ãã¥ã¼ã®ä¸ã«åãæç»ããçºã®SurfaceViewãéãã¦æç»ãã¾ãã
ä¾ï¼ <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:keepScreenOn="true" > <SurfaceView android:id="@+id/CameraImageSurfaceView" android:layout_width="match_parent" android:layout_height="match_parent" /> <SurfaceView android:id="@+id/ShapeSurfaceView" android:layout_width="match_parent" android:layout_height="match_parent" /> </FrameLayout>
ãã¦ã
ãã®äºã¤ã«é¢ãã¦ã¯èª¬æãé·ããªããããªã®ã§ã次åã«ç¶ãã¾ãã
Google Glassã®çºç±å¯¾ç
以åGDKã§Activityãå¤æ§ãããã¨ã¯æ¬ä½ã®çºç±éãé«ããªãã«å°ã触ãã¾ããããä»åã¯ãã®çºç±å¯¾çã¨ãã¦æ¾ç±æ¿ã®åãä»ããè¡ã£ã¦ã¿ã¾ããã
å
ã
Google Glassã«ã¯æ¢åã§æ¾ç±æ¿ãåãä»ãããã¦ãã¾ãã
ãããã³ã¹ãã®é«ãã¢ããªãä½æããåä½ãç¶ããã¨ã¿ãããã¹ã¯ã¤ããªã©ãè¡ãå³å´é¨åï¼è£
çæï¼ã®ãã¬ã¼ã ã®çºç±ãé常ã«é«ããªããã¨ããããã¾ããã
â»ãã³ã¯ï¼æ¢åã®èç±æ¿ãGlassãã¬ã¼ã ãå²ãããã«è£
çãã¦ããã
ã赤 ï¼çºç±ãæãé«ãé¨åãä»åã¯ããã«èªä½ã®èç±æ¿ãè£
çããã
å°ã温ãããªãç¨åº¦ã§ããã°åé¡ãªãã®ã§ãããã«ã¡ã©æ©è½ã使ãç¶ãããããªã³ã¹ãã®é«ãã¢ããªãåä½ããç¶ããã¨ãGlassãããç¶ãããã¨ãè¾ãã»ã©ã®çºç±éã¨ãªãã¾ãã
ããã§æ¢åã®æ¾ç±æ¿ã ãã§ã¯ä¸è¶³ãªçºç±ã®å¯¾çã¨ãã¦ãªãªã¸ãã«ã®æ¾ç±æ¿ãåãä»ãããã¨ã試ã¿ã¾ããã
ç¨æãããã®
- ç±ä¼å°æ§ã·ãªã³ã³
- ç±ä¼å°æ§æ¥çå¤
- ã³ã¤ã³
- ãã©ã¹ããã¯ã®ç·
- ããµã
- ãã³ã
æé
ï¼ï¼ã·ãªã³ã³ãçºç±å¯¾çãè¡ããããã¬ã¼ã ã®ãµã¤ãºã«åããã¦ã«ããããç±ä¼å°æ§ã®æ¥çå¤ã使ãéãåããã¾ãã
ï¼ï¼æ´ã«æ¾ç±åº¦ãããããããéããã·ãªã³ã³ã®éã«ã³ã¤ã³ãæã¿ã¾ãã
ï¼ï¼ï¼ï¼ã§ä½æãããã®ãGlassã®æ¾ç±ãè¡ãããé¨åã«è£
çãã¾ãã
ãã®ã¨ããæ¾ç±æ¿ã¨Glassã«ééãã§ããã¨æ¾ç±å¹æãä¸ããããããã£ããå¯çããããã¨ãéè¦ã
ææ
ãªãªã¸ãã«ã®æ¾ç±æ¿ãåãä»ãããã¨ã«ããã以åã«æãã¦ããçºç±ãæãããã¨ãã§ãã¾ããã
ã¾ãã«ã¡ã©ãã¥ã¼ã使ãç¶ãããããªã¢ããªãGlassã§åä½ããç¶ããéã®åä½æéã以åã®ç´åè¿ãã¾ã§å»¶ã°ããã¨ãã§ãã¾ããã
ä»åè¦å´ããç¹
Glassã«æ¾ç±æ¿ã®å¯ç度ãæèããªããåãä»ãããã¨ãããã§ãã
ã§ããããããéè¦ã§ãï¼ï¼ï¼ï¼
ä»åã®æ¾ç±æ¿ã®åãä»ãã«ããçºç±å¯¾çã¯è¡ãã¾ããããããå¤æ§ãªæ©è½ãæè¼ããã¢ããªãéçºããã«ã¯è¨è¨æ®µéããã®çã¨ã対çãå¿ è¦ã¨ãªãã¾ãã
GDKã§Activityã使ã£ã¦ã¿ã
GDKã§ã¯ã以前お伝えしたCardの仕組みã使ããã«Androidã¨åæ§ã«Activityã使ã£ã¦ã¢ããªãæ§ç¯ãããã¨ãã§ãã¾ãã
注æç¹ã¨ãã¦ã¯ä»¥ä¸ãããã¾ãã
- 640 à 360 ã®è§£å度
- ã¹ã¯ã¤ããã¦ã³ãæ»ããã¿ã³ã«è©²å½ãã
- Androidã®ãããªã¿ããæä½ã¯ã§ããªã
ãããActivityã ãã§ã¯ã¢ããªã timeline ä¸ã«è¡¨ç¤ºãããªãçºãã¦ã¼ã¶ã¼ãã¢ããªãèµ·åããæ段ãããã¾ãããããã§ãã¢ããªèµ·åç¨Serviceãç¨æãã¦onStartCommand()ã®ã¿ã¤ãã³ã°ã§ä»»æã®ã¢ã¯ãã£ããã£ãèµ·åãã¦ããå¿ è¦ãããã¾ãã
ãªãã ãã¨ã¦ãé¢åã«æãã¾ãããã¨ã¦ãç°¡åã
ã¾ããµã¼ãã¹ã¯ã©ã¹ãç¨æãã¾ãã
åç´ã«ã¢ã¯ãã£ããã£ãèµ·åããã ãã®ãµã¼ãã¹ã¯ã©ã¹ã«å¿ è¦ãªã³ã¼ãã¯ãã£ãããã ãã
public class HelloService extends Service { @Override public IBinder onBind(Intent arg0) { return null; } @Override public int onStartCommand(Intent intent, int flags, int startId) { Intent aIntent = new Intent(); aIntent.setClassName("com.example.helloactivity","com.example.helloactivity.MainActivity"); aIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); startActivity(aIntent); return START_STICKY; } }
ãã¨ã¯ timeline ãããµã¼ãã¹ãå¼ã¶ããã«ãããã§ã¹ããã¡ã¤ã«ãè¨å®ããã ãã
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.helloactivity" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="15" android:targetSdkVersion="15" /> <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:icon="@drawable/ic_launcher" android:name="com.example.helloactivity.MainActivity" android:label="@string/app_name" > </activity> <service android:name="com.example.helloactivity.HelloService" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:enabled="true" android:exported="true"> <intent-filter> <action android:name="com.google.android.glass.action.VOICE_TRIGGER" /> </intent-filter> <meta-data android:name="com.google.android.glass.VoiceTrigger" android:resource="@xml/voice_trigger_start" /> </service> </application> </manifest>
ãã® intent-filter 㨠meta-data ãéè¦ã§ããããè¨è¿°ãããã¨ã«ãã£ã¦ãµã¼ãã¹ã timeline ä¸ã«è¡¨ç¤ºãããããã«ãªãã¾ãã
<intent-filter> <action android:name="com.google.android.glass.action.VOICE_TRIGGER" /> </intent-filter> <meta-data android:name="com.google.android.glass.VoiceTrigger" android:resource="@xml/voice_trigger_start" />
ããã ãã§ãAndroidã¨åæ§ã®Activityã使ã£ãã¢ããªãGlassã§å®ç¾ãããã¨ãã§ãã¾ãã
ããããAndroidã¢ããªãGlassã«ç°¡åã«ç§»æ¤ã§ãããã¨ã¯èããªãã§ä¸ããã
ç¾æç¹ã§ Activity 㯠Glass ã«ã¯ã³ã¹ããé«ããé常ã«åä½ãéããªããæ¬ä½ã®çºç±ãåãã§ãã
ç¾æç¹ã§ã¯ãGlass ã« Activity ã使ãã®ã¯è¯ãé¸æè¢ã§ã¯ãªãã¨èãã¾ãã
ããã示ãããã«ãActivity ã使ã£ã¦æç»ãè¡ã£ã¦ãããµã³ãã«ã¯ Google ããæä¾ããã¦ãã¾ããã
ããããã½ã¼ã¹ã³ã¼ããå ¬éããã¦ã¾ããããGlass 㯠Android ã¨ä¼¼ã¦éãªããã® ãªã®ã§ãã