SlideShare une entreprise Scribd logo
1  sur  48
Télécharger pour lire hors ligne
2013.07.13 SUGARSPOT
Androidにおける
HTMLの使いどころ
in 日本Androidの会 中国支部
第32回勉強会
13年7月15日月曜日
自己紹介
佐藤 慎也
個人事業でAndroidアプリ開発を主とした活動してます
13年7月15日月曜日
日本Androidの会
中国支部
自己紹介
GDG中国
13年7月15日月曜日
アプリ紹介
Wepho BNBW きいてみるClippic
おるすばんLW おるすばんSC RapidMail Mapino TimeAjustment
マーケットで「SUGARSPOT」と検索!
Picton BW
13年7月15日月曜日
告知
8月18日(日)
A8D:1
13年7月15日月曜日
昨年の様子
13年7月15日月曜日
HTMLの使いどころ
Androidアプリにおける
13年7月15日月曜日
3つのパターン
HTMLを使う
13年7月15日月曜日
標準ブラウザを呼び出す
アプリ→ブラウザ→アプリ
①
標準ブラウザを呼び出す
アプリ→ブラウザ→アプリ
①
WebView (HTMLをネット取得)
②
WebView (HTMLを内包)
③
13年7月15日月曜日
標準ブラウザ呼び出し
パターン1
13年7月15日月曜日
アプリからブラウザを
Intentで呼び出し
①
13年7月15日月曜日
アプリからブラウザを
Intentで呼び出し
ブラウザをユーザーに
操作させる
①
②
13年7月15日月曜日
アプリからブラウザを
Intentで呼び出し
ブラウザをユーザーに
操作させる
ブラウザからアプリに
処理を戻す
①
②
③
13年7月15日月曜日
● Webシステムを流用する
 → 会員登録
 → コンテンツの表示
● Webサービスの認証
 など
どんな時につかう?
13年7月15日月曜日
intent-filterにブラウザからの
呼び出しを受け取るよう記述
どうやってアプリに戻す?
<category android:name=
"android.intent.category.BROWSABLE"/>
13年7月15日月曜日
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
    <data android:scheme="hoge"
android:host="registration"/>
</intent-filter>
<a href=”hoge://registration/12345”>
[HTML]
[AndroidManifest.xml]
13年7月15日月曜日
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
    <data android:scheme="hoge"
android:host="registration"/>
</intent-filter>
<a href=”hoge://registration/12345”>
[HTML]
[AndroidManifest.xml]
13年7月15日月曜日
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
    <data android:scheme="hoge"
android:host="registration"/>
</intent-filter>
<a href=”hoge://registration/12345”>
[HTML]
[AndroidManifest.xml]
13年7月15日月曜日
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
    <data android:scheme="hoge"
android:host="registration"/>
</intent-filter>
<a href=”hoge://registration/12345”>
[HTML]
[AndroidManifest.xml]
プログラムで
値を取得
13年7月15日月曜日
● 資産が流用できる
メリット
デメリット
● エラーの際などアプリに
  戻らないこともあるかも
●標準ブラウザへPOSTできない
●オフラインで利用できない
13年7月15日月曜日
WebView
(ネットからHTMLを取得)
パターン2
13年7月15日月曜日
WebView?
13年7月15日月曜日
WebView
アプリに組み込んで使える
簡易ブラウザ
=
13年7月15日月曜日
OSのバージョンによって
違いがあります
2.1
2.2
境界
OSバージョンを
判別して
HTMLを切替
13年7月15日月曜日
基本的には、普通のブラウザと
同じような事ができます
できること
setPluginsEnabled
setJavaScriptEnabled
setBuiltInControls
setSaveFormData
setSavePassword
プラグインの有効・無効
JavaScriptの有効・無効
ズームの有効・無効
フォームデータ保存の有効・無効
パスワード保存の有効・無効
設定で出来ること制限する(以下、一部だけ)
13年7月15日月曜日
● 簡単に使える
● 出来ることを制御可能
● HTMLの部分は分業しやすい
● 豊富なJSライブラリが利用可
● CSSで見た目を操作しやすい
● POSTができる
メリット
13年7月15日月曜日
●アプリのバージョンアップを
 せず見た目や機能を変更可
●HTMLなので拡大・縮小表示も
 簡単
メリット
13年7月15日月曜日
デメリット
●反応が遅い(ネイティブと比較して)
●JavaScriptを有効にしてると
 セキュリティ的に不安あり
●OSバージョンで動きが違うかも
●URLが見えない状態だと少し
 怖いよね
OAuth認証の場合とか、ショッピングサイトとか
  本当に正しいサイトにアクセスしてる?・・・不安
13年7月15日月曜日
デメリット
●オフラインでは使えない
13年7月15日月曜日
案件例
●課金&ライセンス確認
 → 起動時にライセンスサーバーへ
  ・ライセンスがない場合の課金はWEBで
 → ライセンスOKでアプリを利用可
  ・ブラウザから戻ってきたら再度ライセンス確認
  ・スキームだけで判断は呼び出し元が保証できない
13年7月15日月曜日
案件例
●お店のメニューアプリ
 → メニューはWEBサイト
  ・アクセス制御
 → 一定時間操作がないとスクリーン
セーバーで広告を表示
  ・画面操作の判定
  ・スクリーンセーバーでの広告表示
13年7月15日月曜日
WebView
(HTMLを内包)
パターン3
13年7月15日月曜日
HTML
css
JS
HTMLHTML
JS
css
アプリに含める
13年7月15日月曜日
● オフラインでも使える
● HTMLなどのダウンロードが
 発生しないので少し早い
●テンプレートエンジン使うと
 動的HTMLも作りやすい
メリット
13年7月15日月曜日
デメリット
WebViewのデメリットは同じ
そのほかに、
●アプリサイズが大きくなる
●デザインを変更するためには
 アプリのバージョンアップ
13年7月15日月曜日
案件例
●グラフの表示
 → 色々なパターンのグラフが可能
 → 折れ線グラフ、棒グラフの併用
 → つかったグラフのライブラリ
  ・jQueryのプラグイン「jqPlot」
  ・http://www.jqplot.com/
13年7月15日月曜日
実際の動作デモ
実機+USB+AndroidScreenMonitor
アプリ「パチ帳スロ帳」
13年7月15日月曜日
jqPlot
使ってみよう
13年7月15日月曜日
サンプルを見てみる
アルファシス – alphasis.info -
http://alphasis.info/jquery-plugins/
jqplot/
13年7月15日月曜日
 HTMLの
   使いどころ
まとめ
13年7月15日月曜日
発注元や利用者にとって
「何で作られてるか」
は重要ではない
13年7月15日月曜日
「満足度」
13年7月15日月曜日
どこで満足度が得られるか
そこは人それぞれ
13年7月15日月曜日
満足度を得られるポイントに
注力するために
楽できる所は楽しよう!
13年7月15日月曜日
ネイティブで作ると面倒なとき
・作業時間の問題
・費用の問題
・メンテナンスの問題
 使いどころ
13年7月15日月曜日
あたりまえのはなしでしたが
まとめは以上。
13年7月15日月曜日
気になることは、個別に聞いてください
聞かなきゃ損
13年7月15日月曜日
ありがとうございました
マーケットで「SUGARSPOT」と検索!
13年7月15日月曜日

Contenu connexe

En vedette

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

En vedette (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 

日本Androidの会 中国支部 第32会勉強会(20130713)