Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
QucikSettingsTileAPI
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
funnelbit
September 28, 2016
Technology
380
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
QucikSettingsTileAPI
funnelbit
September 28, 2016
More Decks by funnelbit
See All by funnelbit
Hatena Engineer Seminar #9
funnelbit
5
7.5k
droidkaigi-2017-renovation
funnelbit
10
11k
Dart
funnelbit
0
300
BottomBarAndSnackBar
funnelbit
0
540
Dagger2 Optional bindings
funnelbit
0
610
WearableRecyclerView
funnelbit
1
840
Mobile Vision
funnelbit
0
490
AwarenessAPI
funnelbit
0
160
Asynchronous Injection
funnelbit
1
290
Other Decks in Technology
See All in Technology
脱SaaS!FDEを支えるプロビジョニングと分離設計
knih
0
240
気軽に使える"情報のハブ"としてのNotion活用 〜フロー情報の集積点 と、 Claude Code × Notion AI〜
syucream
1
160
AIAU_UMEMOGU_ninomiya_slide
ninomiya_ii
0
240
小さく始める AI 活用推進 ― 日経電子版 Web チームの事例/nikkei-tech-talk47
nikkei_engineer_recruiting
0
300
LayerX コーポレートエンジニアリング室におけるサプライチェーンセキュリティへの取り組み / Supply Chain Security at LayerX Corporate Engineering
yuyatakeyama
2
680
2026TECHFRESH畢業分享會 - AI 時代的人生存檔點
line_developers_tw
PRO
0
1.3k
秘密度ラベル初心者が第1歩でつまづかないための「設計・運用」ポイント
seafay
PRO
0
250
データレイクの「見えない問題」を可視化する
sansantech
PRO
1
110
コミュニティの有益性 ~JAWS Days 2026 での体験を通して~ / The Benefits of a Community ~Through My Experience at JAWS Days 2026~
seike460
PRO
0
190
サイバーエージェントにおけるAI推進戦略と変革への取り組み
shotatsuge
0
140
2026TECHFRESH畢業分享會 - 葬送的通靈師:化系統與用戶雜訊成行動訊號
line_developers_tw
PRO
0
1.3k
MUSUBI 田中裕一『AIと共に行う「しごとのリデザイン」- スモールバックオフィス編』AI Ops Lab #4
musubi
0
270
Featured
See All Featured
Build your cross-platform service in a week with App Engine
jlugia
234
18k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
290
How to build a perfect <img>
jonoalderson
1
5.7k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.3k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
240
Building a Modern Day E-commerce SEO Strategy
aleyda
45
9.1k
Build The Right Thing And Hit Your Dates
maggiecrowley
39
3.2k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
71
40k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
666
130k
Git: the NoSQL Database
bkeepers
PRO
432
67k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
310
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.3k
Transcript
2VJDL4FUUJOHT5JMF "1*
ࣗݾհ ଜྋ גࣜձࣾͯͳ )BUFOBGVOOFMCJU 5XJUUFS!FYQFSPQFSP
2VJDL4FUUJOHT5JMF"1*
2VJDL4FUUJOHT5JMF"1* w ͔Β"1*͕ެ։͞Εͨ w BOESPJETFSWJDFRVJDLTFUUJOHT5JMF w BOESPJETFSWJDFRVJDLTFUUJOHT5JMF4FSWJDF
5JMF
5JMF w TFU*DPO *DPO TFU-BCFM $IBS4FRVFODF TFU$POUFOU%FTDSJQUJPO JOU TFU4UBUF
JOU w VQEBUF5JMF w 5JMFͷঢ়ଶΛөͤ͞Δʢද͕ࣔมΘΔʣ
5JMF public class QuickSettingsService extends TileService { … Tile tile
= this.getQsTile(); … tile.setIcon(…); tile.setTitle(…); tile.updateTile(); }
5JMF4FSWJDF
5JMF4FSWJDF public class QSService extends TileService { @Override public void
onTileAdded() { super.onTileAdded(); } @Override public void onTileRemoved() { super.onTileRemoved(); } @Override public void onClick() { super.onClick(); } @Override public void onStartListening() { super.onStartListening(); } @Override public void onStopListening() { super.onStopListening(); } } w 4FSWJDFͷࢠΫϥε w ܧঝͯ͠͏
5JMF4FSWJDF w PO5JMF"EEFE w 5JMF͕Ճ͞ΕͨΒݺΕΔ w PO5JMF3FNPWFE w
5JMF͕আ͞ΕͨΒݺΕΔ w PO$MJDL w 5JMF͕ΫϦοΫͨ͠ΒݺΕΔ
5JMF4FSWJDF w PO4UBSU-JTUFOJOH w Ϧεχϯάঢ়ଶʹೖͬͨΒݺΕΔ w PO4UPQ-JTUFOJOH w
Ϧεχϯάঢ়ଶͰແ͘ͳͬͨΒݺΕΔ
"OESPJE.BOJGFTU
"OESPJE.BOJGFTU <service android:name=".QuickSettingsService" android:icon="@drawable/ic_android_black_24dp" android:label="@string/tile_label" android:permission="android.permission.BIND_QUICK_SETTINGS_ TILE"> <intent-filter> <action android:name="android.service.quicksettings.action.QS_TILE"
/> </intent-filter> </service>
"OESPJE.BOJGFTU <service android:name=".QuickSettingsService" android:icon="@drawable/ic_android_black_24dp" android:label="@string/tile_label" android:permission="android.permission.BIND_QUICK_SETTINGS_ TILE"> <intent-filter> <action android:name="android.service.quicksettings.action.QS_TILE"
/> </intent-filter> </service>
5JMF4FSWJDF TUBSU"DUJWJUZ"OE$PMMBQTF TIPX%JBMPH VOMPDL"OE3VO
TUBSU"DUJWJUZ"OE$PMMBQTF w "DUJWJUZىಈ͠2VJDL4FUUJOHTΛͨͨΜͰ͘ΕΔ w ϩοΫதͩͱͨͨΊͳ͍ʢ"DUJWJUZىಈ͢Δʣ public class QSIntentService extends TileService
… Intent intent = new Intent(getApplicationContext(), ResultActivity.class); startActivityAndCollapse(intent); … }
TIPX%JBMPH w 2VJDL4FUUJOHTΛดͯ͡%JBMPHΛग़͢ w ϩοΫதͩͱͨͨΊͳ͍ʢ%JBMPHىಈ͢Δʣ public class QSDialogService extends TileService
{ … DialogFragment dialog = DialogFragment.create(); showDialog(dialog); … }
VOMPDL"OE3VO w ʮΞϯϩοΫͨ͠Βಈ͘ʯॲཧ͕͔͚Δ public class QSService extends TileService { …
@Override public void onClick() { unlockAndRun(new Runnable() { @Override public void run() { Log.e("ಈ͘Α", "΄͓͓͓͓͓͓͓"); } }); } … }
·ͱΊ w ཱͯΕΔ͔Ͳ͏͔ϓϩμΫτʹΑΔ w ʮϩοΫதԡͤΔʯͱ͍͏ͷ͕ϙΠϯτ w Ϣʔβʹ͓͍ͯΒ͏ಋઢΛͲ͏͢Δ͔ʁ
ࢀߟ w IUUQTDPEFMBCTEFWFMPQFSTHPPHMFDPN DPEFMBCTBOESPJEORVJDLTFUUJOHT JOEFYIUNM JOEFY''JP
͋Γ͕ͱ͏͍͟͝·ͨ͠