View
767
Download
4
Category
Preview:
DESCRIPTION
Learn about new developments of Google Play Services and Android.
Citation preview
江川 崇t.egawa@gmail.com
Google Developers Expert (Android)
Android & Google Play Services 最新情報
2014.4.6
AndroidやGoogle Play Servicesに関連した、比較的最近の話をします今年のものを中心に採り上げますKitKatの話はしませんので、何かあれば後で個別にお願いします
お話しすること
おしながきGoogle Play Services 4.3
Google Cast SDK
Android Wear
その他
Google Play Services 4.3
Google Play Services
• AndroidアプリとGoogleの各種サービスとの連携を容易に行えるように拡張されたコンポーネント
http://developer.android.com/google/play-services/index.html
Google Play Services
• 自動アップデートされるため、デバイス間格差を軽減
主なバージョンの変遷
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
Google Play Services 4.3
http://goo.gl/0OKTYC
4.3の主な機能
• Google Tag Manager• Address API• Game Gifts• Google Drive API (Update)
Google Tag Managerクラウド上に、タグと内容(値)を定義し、WEBサイトやアプリで利用する機能
•主に統計情報のログ収集などに利用•プログラミングスキルがなくても使える•ハードコーディング防止https://www.google.com/tagmanager/
アプリでの活用の例(基本)
背景色 白(FFFFFFFF)
private static ContainerHolder containerHolder;・・・private int getColor(String key) { return colorFromColorName( containerHolder.getContainer().getString(key) );}
クラウド
デバイス
※ その他、設定情報などにも
Address API初めて訪問するサイトで配送先などを入力する手間を軽減するAPI
Location Data現在位置を配送先として指定
Address Picker予めユーザーが登録したアドレスのリストから選択
Game Gifts
Google+のサークル等を介してゲーム内のアイテム等を他のユーザーに送ったり、助けを求めたりすることができる
【参考】
LiquidFun2D物理ライブラリ
https://www.youtube.com/watch?v=bofu6Hw7u5s
Google Play Games UnityプラグインUnityでPlay Gamesの機能を使うためのもの
http://github.com/playgameservices/play-games-plugin-for-unity
Google Drive API Update
Offline Dataオフライン時のDriveデータへのアクセス
Hidden Application Dataユーザーの目に見えないデータ(アプリケーション内だけで利用するデータ)をドライブに保持
Change Notificationドライブのコンテンツの変更を検知
Google Cast SDK
Chromecast• HDMIで映像や音楽を流せる (Castできる)
• WiFiでネットに繋がる• 35USD ※日本では売っていないカナダ、デンマーク、フィンランド、フランス、ドイツ、イタリア、
オランダ、ノルウェー、スペイン、スウェーデン、英国
Chromecastであそぶ•Chromecastのセットアップhttps://cast.google.com/chromecast/setup
•Extensionで遊ぶhttps://chrome.google.com/webstore/detail/google-cast/boadgeojelhgndaghljhdicfkmllpafd?hl
※ Youtubeなどの特定のWEBサイトやアプリは 何もせずにそのまま遊べる
Cast Appshttps://www.google.co.jp/intl/en/chrome/devices/chromecast/apps.html
Google Cast SDK自分のアプリをCastできる開発キット
https://developers.google.com/cast/
登場人物Sender Receiver Contents
SenderCastデバイスにメッセージを送るものAndroidiOSChrome
準備開発者登録 (5 USD必要 )Castデバイスとアプリケーションを登録CastデバイスからシリアルNo.の送信を有効化
ReceiverCastデバイス上で動作するものHTML5/JavaScriptのアプリケーション
Receiverのライフサイクル
Receiverの種類Custom Receiver任意のHTMLコンテンツをCastデバイスで実行
Styled Media Receiverメディア再生のUIを実行CSSで外観をカスタマイズ可能
サポートされているメディア
画像BMPGIFJPEGPNGWEBP
ストリーミングMP4WEBM
ビットレートストリーミングMPEG-DASHSmoothStreamingHTTP Live Streaming (HLS)
Android Wear
Android Wearウェアラブル版Android
モトローラ, LG, Samsungなどが着手しているらしいとの噂
詳細はきっとGoogle I/Oで?
http://developer.android.com/wear/index.html?utm_source=ausdroid.net
Android Wear Developer Preview
今のうちに触っとけよというお達しIntroducing Android Wear Developer Previewhttps://www.youtube.com/watch?v=0xQ3y902DEQ
Developer Previewの試し方
申し込む→しばらくするとメールが届くhttp://developer.android.com/wear/preview/start.html
動作環境現状は、ARM版WearエミュレータとKitKat以上のAndroidデバイスでのみ動作
接続はADB
Android Wear Developer Preview
現状、できることはNotificationのみと言ってよいデバイスから Wearへ Notificationを送るWearから デバイスへ PendingIntentを送る
Pages
StackingVoice Replies
Action
Notificationのバリエーション
Pagesページ毎に出す
Stacking同ページ内に複数出す
swipe
Notificationのバリエーション
Voice Replies声で応答する※ 未対応
Action操作を促す
その他
Developer StoriesGoogle Playに人気コンテンツを出しているデベロッパーの体験談を読めるhttp://developer.android.com/distribute/googleplay/spotlight/index.html
Google Patch Rewardsセキュリティに関連したパッチを提供することで報奨金が得られるもの。Androidも最近になって対象となったhttp://www.google.com/about/appsecurity/patch-rewards/
$10,000 複雑かつインパクトの大きい改善
$5,000
$1,337
$500 トリビアルな改善
EOF
Recommended