Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Android TV - Japan Android Group 2016 Aug.

Android TV - Japan Android Group 2016 Aug.

Takashi EGAWA

August 23, 2016
Tweet

More Decks by Takashi EGAWA

Other Decks in Programming

Transcript

  1. σόΠεͷܗଶ  ෼཭ܕ Ұମܕ $ISPNFDBTU /7*%*"4)*&-% 9JBPNJ.J#PY 5PTIJCB4NBSU57 40/:#3"7*" 4)"31"2604΋

    ෼཭ܕɿ ઃఆ΍ૢ࡞ʹଟগͷ஌͕ࣝඞཁ͕ͩ࢖͍׳Εͨطଘͷػث͕࢖͑Δ Ұମܕɿ ઃఆ΍ૢ࡞͸༰қ͕ͩػثຊདྷͷߪೖϥΠϑαΠΫϧͱ߹͍೉͍ 
  2. (PPHMF$BTUͱ"OESPJE57 (PPHMF$BTU ˙ΞϓϦ։ൃ (PPHMF$BTU4%, Wʹ ެ։ Λ༻͍ͯ։ൃ TFOEFSσόΠεͱͯ͠ԼهΛఏڙ w"OESPJE"1* wJ04"1*

    w$ISPNF"1* ˙ΞϓϦ഑৴ (PPHMF$BTU4%,%FWFMPQFS ʹొ࿥ʢॳճυϧʣ͠഑৴ IUUQTDBTUHPPHMFDPNQVCMJTI  
  3. (PPHMF$BTUͱ"OESPJE57 (PPHMF$BTU ˙ΞϓϦ։ൃ (PPHMF$BTU4%, Wʹ ެ։ Λ༻͍ͯ։ൃ TFOEFSσόΠεͱͯ͠ԼهΛఏڙ w"OESPJE"1* wJ04"1*

    w$ISPNF"1* ˙ΞϓϦ഑৴ (PPHMF$BTU4%,%FWFMPQFS ʹొ࿥ʢॳճυϧʣ͠഑৴ IUUQTDBTUHPPHMFDPNQVCMJTI  "OESPJE57 ˙ΞϓϦ։ൃ ௨ৗͷ"OESPJEΞϓϦ։ൃ  -FBOCBDL-JCSBSZͰͷ։ൃ $BTUΞϓϦ΋ඪ४ಈ࡞ ˙ΞϓϦ഑৴ ௨ৗͷΞϓϦͱಉ༷ʹ(PPHMF1MBZ Ͱͷ഑৴ ˞৹ࠪ͋Γ 
  4. "OESPJE57˺"OESPJE  "OESPJE57 "OESPJE r"GFX(PPHMFBQQT r4PNFIBSEXBSFGFBUVSFT  1MBUGPSN57GFBUVSFT  0&.$VTUPNJ[BUJPO

    w։ൃπʔϧ΍4%,͸طଘͷ΋ͷͱڞ௨ w"1*͸جຊతʹ͢΂ͯར༻Մ wͨͩ͠ɺ͍͔ͭ͘ͷ(PPHMFΞϓϦඇ౥ࡌ 8&#ϒϥ΢β $ISPNF (PPHMF.BQT ϝʔϧ (NBJM  (PPHMF )BOHPVU w57ͷಛੑ্ɺ౥ࡌ͍ͯ͠ͳ͍ϋʔυ΢ΣΞػೳ͋Γ 
  5. Items Status KEYCODE_DPAD_UP     KEYCODE_DPAD_DO WN 

       KEYCODE_DPAD_LEF T     KEYCODE_DPAD_RIG HT     KEYCODE_DPAD_CEN TER    KEYCODE_BUTTON_A A"   KEYCODE_BUTTON_B B"     KEYCODE_BACK BACK"     KEYCODE_HOME HOME"  Android"TV"   Items Focus nextFocusDown  nextFocusUp  nextFocusRight  nextFocusLeft  ํ޲φϏήʔγϣϯ  wجຊతʹ͢΂ͯΩʔΠϕϯτͱͯ͠ૹग़͞ΕΔ wPO,FZ%PXOͰಠࣗʹॲཧ͢Δ͜ͱ΋Մೳ wϑΥʔΧεભҠ͕ෆࣗવͳ৔߹͸OFYU'PDVT999ཁૉͰมߋ͢Δ android:nextFocusRight=“@id/button1" android:nextFocusLeft="@id/button2" 
  6. ϋʔυ΢ΣΞػೳ  w57Ͱ͸ඪ४αϙʔτ͞Εͳ͍ػೳ͕͋Δ wແ͍͜ͱΛલఏʹ࡞Δ wڞ௨ΞϓϦͷ৔߹͸ɺػೳΛඞਢͱ͠ͳ͍ࢫΛએݴ͠ɺ࣮ߦ࣌ʹػೳͷ ༗ແΛνΣοΫ͢Δ    

    android.hardware.touchscreen   android.hardware.faketouch  android.hardware.telephony  android.hardware.camera Bluetooth android.hardware.bluetooth Near Field Communications (NFC) android.hardware.nfc GPS android.hardware.location.gps     android.hardware.microphone   android.hardware.sensor <uses-feature android:name="android.hardware.touchscreen" android:required="false" /> 
  7. ҉໧తͳϋʔυ΢ΣΞཁٻ  wύʔϛογϣϯཁٻʢVTFQFSNJTTJPOʣΛ͢Δͱɺ҉໧తʹϋʔυ΢Σ ΞػೳΛཁٻͨ͜͠ͱʹͳΔέʔε͕͋Δ w໌ࣔతʹVTFGFBUVSFλάʹSFRVJSFEGBMTF͕ඞཁ     

    3&$03%@"6%*0 android.hardware.microphone $".&3" android.hardware.camera "$$&44@'*/&@-0$"5*0/ android.hardware.location android.hardware.location.gps 
  8. #SPXTF'SBHNFOU  w͢΂ͯͷϝσΟΞίϯςϯπΛҰՕॴʹ·ͱΊͯӾཡͰ͖ΔΑ͏ʹ͢Δ wΧςΰϦ͝ͱͷ෼ྨ΍ɺ֤ϝσΟΞͷάϦουදࣔͳͲ͕ඪ४ͰՄೳ      3&$03%@"6%*0

    android.hardware.microphone $".&3" android.hardware.camera "$$&44@'*/&@-0$"5*0/ android.hardware.location android.hardware.location.gps 
  9. #SPXTF'SBHNFOU       3&$03%@"6%*0 android.hardware.microphone $".&3"

    android.hardware.camera "$$&44@'*/&@-0$"5*0/ android.hardware.location android.hardware.location.gps wΧςΰϦબ୒࣌ɺΧςΰϦʹରԠ͢ΔϝσΟΞͷλΠτϧͳͲΛදࣔ 
  10. %FUBJMT'SBHNFOU  w݅ͷϝσΟΞίϯςϯπͷৄࡉͳ৘ใ΍ϝσΟΞʹର͢Δૢ࡞Λఏڙ      3&$03%@"6%*0 android.hardware.microphone

    $".&3" android.hardware.camera "$$&44@'*/&@-0$"5*0/ android.hardware.location android.hardware.location.gps 
  11. android { compileSdkVersion 24 buildToolsVersion '24' ... } 
 dependencies

    { ... compile 'com.android.support:leanback-v17:24.0.0' compile 'com.android.support:recommendation:24.0.0' } 
 ར༻͢Δʹ͸  wCVJMEHSBEMF 
  12. wՁ֨ͱൢച഑෍஍Ҭ 1SJDJOH%*453*#65*0/ ͔Β"OESPJE57ͷ ΧςΰϦʹνΣοΫΛೖΕΔ͜ͱͰ57༻ϨϏϡʔ͕ߦΘΕΔ wϨϏϡʔ͕௨Ε͹ɺ57༻1MBZ4UPSFͰެ։͞ΕΔ wϨϏϡʔ͕௨Βͳ͘ͱ΋ɺ௨ৗͷ1MBZ4UPSFʹӨڹ͸ͳ͍ wυΩϡϝϯτɿ"OESPJE57΁ͷ഑෍ʢIUUQHPPHM"S1Y1Yʣ w-&"/#"$,@-"6/$)&3 w57༻όφʔը૾ Y

    YIEQJ  wαϙʔτ֎ͷϋʔυ΢ΣΞͷґଘΛഉআʢλονεΫϦʔϯͳͲʣ wύʔϛογϣϯઃఆʹΑΔ҉໧తͳϋʔυ΢ΣΞཁٻͷ֬ೝ wϥϯυεέʔϓରԠ wڑ཭͕཭Ε͍ͯͯ΋ݟ͑ΔΑ͏ʹ wΦʔόʔεΩϟϯͷରԠ w-FBOCBDL6*ͷରԠ "1,ͷ഑৴