devfest japan 2014 spring

37
江川 崇 [email protected] Google Developers Expert (Android) Android & Google Play Services 最新情報 2014.4.6

Upload: takashi-egawa

Post on 24-May-2015

767 views

Category:

Technology


4 download

DESCRIPTION

Learn about new developments of Google Play Services and Android.

TRANSCRIPT

Page 1: DevFest Japan 2014 Spring

江川 崇[email protected]

Google Developers Expert (Android)

Android & Google Play Services 最新情報

2014.4.6

Page 2: DevFest Japan 2014 Spring

AndroidやGoogle Play Servicesに関連した、比較的最近の話をします今年のものを中心に採り上げますKitKatの話はしませんので、何かあれば後で個別にお願いします

お話しすること

Page 3: DevFest Japan 2014 Spring

おしながきGoogle Play Services 4.3

Google Cast SDK

Android Wear

その他

Page 4: DevFest Japan 2014 Spring

Google Play Services 4.3

Page 5: DevFest Japan 2014 Spring

Google Play Services

• AndroidアプリとGoogleの各種サービスとの連携を容易に行えるように拡張されたコンポーネント

http://developer.android.com/google/play-services/index.html

Page 6: DevFest Japan 2014 Spring

Google Play Services

• 自動アップデートされるため、デバイス間格差を軽減

Page 7: DevFest Japan 2014 Spring

主なバージョンの変遷

v1.02012.9

v2.02012.12

v3.12013.5

v.4.02013.10

•Google Play games•Fused location provider•Geofencing•Activity recognition•Google+ Signin/Cross-Platform Single Sign On,

•OAuth2.0•Google Maps Android API v2•Photo Sphere Mode

•Google Wallet Instant Buy

•Turn Based Multiplayer•Google Drive•Google Mobile Ads

v.4.12014.1

v.4.22014.2

•Google Cast SDK•Google client API

v.4.32014.3

Page 8: DevFest Japan 2014 Spring

Google Play Services 4.3

http://goo.gl/0OKTYC

Page 9: DevFest Japan 2014 Spring

4.3の主な機能

• Google Tag Manager• Address API• Game Gifts• Google Drive API (Update)

Page 10: DevFest Japan 2014 Spring

Google Tag Managerクラウド上に、タグと内容(値)を定義し、WEBサイトやアプリで利用する機能

•主に統計情報のログ収集などに利用•プログラミングスキルがなくても使える•ハードコーディング防止https://www.google.com/tagmanager/

Page 11: DevFest Japan 2014 Spring

アプリでの活用の例(基本)

背景色 白(FFFFFFFF)

private static ContainerHolder containerHolder;・・・private int getColor(String key) {  return colorFromColorName( containerHolder.getContainer().getString(key) );}

クラウド

デバイス

※ その他、設定情報などにも

Page 12: DevFest Japan 2014 Spring

Address API初めて訪問するサイトで配送先などを入力する手間を軽減するAPI

Location Data現在位置を配送先として指定

Address Picker予めユーザーが登録したアドレスのリストから選択

Page 13: DevFest Japan 2014 Spring

Game Gifts

Google+のサークル等を介してゲーム内のアイテム等を他のユーザーに送ったり、助けを求めたりすることができる

Page 14: DevFest Japan 2014 Spring

【参考】

LiquidFun2D物理ライブラリ

https://www.youtube.com/watch?v=bofu6Hw7u5s

Google Play Games UnityプラグインUnityでPlay Gamesの機能を使うためのもの

http://github.com/playgameservices/play-games-plugin-for-unity

Page 15: DevFest Japan 2014 Spring

Google Drive API Update

Offline Dataオフライン時のDriveデータへのアクセス

Hidden Application Dataユーザーの目に見えないデータ(アプリケーション内だけで利用するデータ)をドライブに保持

Change Notificationドライブのコンテンツの変更を検知

Page 16: DevFest Japan 2014 Spring

Google Cast SDK

Page 17: DevFest Japan 2014 Spring

Chromecast• HDMIで映像や音楽を流せる (Castできる)

• WiFiでネットに繋がる• 35USD ※日本では売っていないカナダ、デンマーク、フィンランド、フランス、ドイツ、イタリア、

オランダ、ノルウェー、スペイン、スウェーデン、英国

Page 18: DevFest Japan 2014 Spring

Chromecastであそぶ•Chromecastのセットアップhttps://cast.google.com/chromecast/setup

•Extensionで遊ぶhttps://chrome.google.com/webstore/detail/google-cast/boadgeojelhgndaghljhdicfkmllpafd?hl

※ Youtubeなどの特定のWEBサイトやアプリは 何もせずにそのまま遊べる

Page 20: DevFest Japan 2014 Spring

Google Cast SDK自分のアプリをCastできる開発キット

https://developers.google.com/cast/

Page 21: DevFest Japan 2014 Spring

登場人物Sender Receiver Contents

Page 22: DevFest Japan 2014 Spring

SenderCastデバイスにメッセージを送るものAndroidiOSChrome

準備開発者登録 (5 USD必要 )Castデバイスとアプリケーションを登録CastデバイスからシリアルNo.の送信を有効化

Page 23: DevFest Japan 2014 Spring

ReceiverCastデバイス上で動作するものHTML5/JavaScriptのアプリケーション

Page 24: DevFest Japan 2014 Spring

Receiverのライフサイクル

Page 25: DevFest Japan 2014 Spring

Receiverの種類Custom Receiver任意のHTMLコンテンツをCastデバイスで実行

Styled Media Receiverメディア再生のUIを実行CSSで外観をカスタマイズ可能

Page 26: DevFest Japan 2014 Spring

サポートされているメディア

画像BMPGIFJPEGPNGWEBP

ストリーミングMP4WEBM

ビットレートストリーミングMPEG-DASHSmoothStreamingHTTP Live Streaming (HLS)

Page 27: DevFest Japan 2014 Spring

Android Wear

Page 28: DevFest Japan 2014 Spring

Android Wearウェアラブル版Android

モトローラ, LG, Samsungなどが着手しているらしいとの噂

詳細はきっとGoogle I/Oで?

http://developer.android.com/wear/index.html?utm_source=ausdroid.net

Page 29: DevFest Japan 2014 Spring

Android Wear Developer Preview

今のうちに触っとけよというお達しIntroducing Android Wear Developer Previewhttps://www.youtube.com/watch?v=0xQ3y902DEQ

Page 30: DevFest Japan 2014 Spring

Developer Previewの試し方

申し込む→しばらくするとメールが届くhttp://developer.android.com/wear/preview/start.html

動作環境現状は、ARM版WearエミュレータとKitKat以上のAndroidデバイスでのみ動作

接続はADB

Page 31: DevFest Japan 2014 Spring

Android Wear Developer Preview

現状、できることはNotificationのみと言ってよいデバイスから Wearへ  Notificationを送るWearから  デバイスへ PendingIntentを送る

Pages

StackingVoice Replies

Action

Page 32: DevFest Japan 2014 Spring

Notificationのバリエーション

Pagesページ毎に出す

Stacking同ページ内に複数出す

swipe

Page 33: DevFest Japan 2014 Spring

Notificationのバリエーション

Voice Replies声で応答する※ 未対応

Action操作を促す

Page 34: DevFest Japan 2014 Spring

その他

Page 35: DevFest Japan 2014 Spring

Developer StoriesGoogle Playに人気コンテンツを出しているデベロッパーの体験談を読めるhttp://developer.android.com/distribute/googleplay/spotlight/index.html

Page 36: DevFest Japan 2014 Spring

Google Patch Rewardsセキュリティに関連したパッチを提供することで報奨金が得られるもの。Androidも最近になって対象となったhttp://www.google.com/about/appsecurity/patch-rewards/

$10,000 複雑かつインパクトの大きい改善

$5,000

$1,337

$500 トリビアルな改善

Page 37: DevFest Japan 2014 Spring

EOF