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
O que há de novo no Android N
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Silvio Santos
July 07, 2016
Programming
0
49
O que há de novo no Android N
Silvio Santos
July 07, 2016
Tweet
Share
More Decks by Silvio Santos
See All by Silvio Santos
Whats new in Liferay Mobile SDK 2.0 for Android
sgosantos
0
160
Other Decks in Programming
See All in Programming
AIによるイベントストーミング図からのコード生成 / AI-powered code generation from Event Storming diagrams
nrslib
2
1.9k
AI巻き込み型コードレビューのススメ
nealle
2
460
Oxlintはいいぞ
yug1224
5
1.4k
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
開発者から情シスまで - 多様なユーザー層に届けるAPI提供戦略 / Postman API Night Okinawa 2026 Winter
tasshi
0
210
要求定義・仕様記述・設計・検証の手引き - 理論から学ぶ明確で統一された成果物定義
orgachem
PRO
1
180
MDN Web Docs に日本語翻訳でコントリビュート
ohmori_yusuke
0
650
CSC307 Lecture 02
javiergs
PRO
1
780
コマンドとリード間の連携に対する脅威分析フレームワーク
pandayumi
1
460
Package Management Learnings from Homebrew
mikemcquaid
0
230
CSC307 Lecture 01
javiergs
PRO
0
690
組織で育むオブザーバビリティ
ryota_hnk
0
180
Featured
See All Featured
The AI Search Optimization Roadmap by Aleyda Solis
aleyda
1
5.2k
From π to Pie charts
rasagy
0
120
Designing for Performance
lara
610
70k
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Building Adaptive Systems
keathley
44
2.9k
How to Talk to Developers About Accessibility
jct
2
130
How to make the Groovebox
asonas
2
1.9k
30 Presentation Tips
portentint
PRO
1
220
How to build a perfect <img>
jonoalderson
1
4.9k
The Limits of Empathy - UXLibs8
cassininazir
1
220
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
1
56
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
150
Transcript
O que há de novo no Android N Silvio Santos
Silvio Santos mobile team lead
N de NOUGAT
MULTI- WINDOW
None
None
None
Activity que usuário interage fica no estado de resumida as
demais em estado de pausa
colocar em multi-window ou redimensionar uma activity implica em uma
mudança de configuração
apps que suportam portrait/ landscape funcionam automaticamente em multi-window
default é true android:resizeableActivity=["true" | “false"]
Activity.isInMultiWindowMode() Activity.isInPictureInPictureMode() Activity.onMultiWindowModeChanged() Activity.onPictureInPictureModeChanged()
NOTIFICATIONS
None
None
None
Builder.setGroup()
DOZE
None
economiza bateria
QUANDO?
na bateria tela desligada parado
Network Wakelocks Alarms Wifi scans Syncs adapters JobScheduler
mensagens de alta prioridade via GCM foreground services
None
None
LIGHT DOZE
na bateria tela desligada parado
menor intervalo entre janelas de manutenção restrição de acesso à
rede background jobs são retardados
None
None
MEMORY OPTIMIZATIONS
apps podem acordar a partir de broadcasts do sistema
TODOS os apps que escutam o broadcast são iniciados
None
None
remoção de static implicit broadcasts
CONNECTIVITY_CHANGE ACTION_NEW_PICTURE ACTION_NEW_VIDEO
None
JobScheduler js = (JobScheduler)context.getSystemService( Context.JOB_SCHEDULER_SERVICE); JobInfo job = new
JobInfo.Builder(MY_BACKGROUND_JOB, new ComponentName(context, MyJobService.class)) .setRequiredNetworkType(JobInfo.NETWORK_TYPE_UNMETERED) .setRequiresCharging(true) .build(); js.schedule(job);
API < L Firebase Job Dispatcher
SCOPED DIRECTORIES
permissão de acesso a diretórios específicos
StorageManager sm = (StorageManager)getSystemService( Context.STORAGE_SERVICE); StorageVolume volume
= sm.getPrimaryVolume(); Intent intent = volume.createAccessIntent( Environment.DIRECTORY_PICTURES); startActivityForResult(intent, request_code);
DATA SAVER
ConnectivityManager.getRestrictBackgroundStatus()
RESTRICT_BACKGROUND_STATUS_DISABLED RESTRICT_BACKGROUND_STATUS_ENABLED RESTRICT_BACKGROUND_STATUS_WHITELISTED
JAVA 8
lambda expressions method references type annotations
default and static interface methods repeatable annotations Streams
ART Android Runtime
JIT
AOT
None
JIT / AOT
profile guided compilation
métodos + usados chamados a partir da UI thread
compila código enquanto o device está carregando
None
?
OBRIGADO! @sgosantos