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
Silvio Santos
July 07, 2016
Programming
0
47
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
150
Other Decks in Programming
See All in Programming
楽して成果を出すためのセルフリソース管理
clipnote
0
180
テストカバレッジ100%を10年続けて得られた学びと品質
mottyzzz
2
610
Android端末で実現するオンデバイスLLM 2025
masayukisuda
1
170
@Environment(\.keyPath)那么好我不允许你们不知道! / atEnvironment keyPath is so good and you should know it!
lovee
0
120
Updates on MLS on Ruby (and maybe more)
sylph01
1
180
実用的なGOCACHEPROG実装をするために / golang.tokyo #40
mazrean
1
290
今だからこそ入門する Server-Sent Events (SSE)
nearme_tech
PRO
3
250
print("Hello, World")
eddie
2
530
JSONataを使ってみよう Step Functionsが楽しくなる実践テクニック #devio2025
dafujii
1
620
アセットのコンパイルについて
ojun9
0
130
How Android Uses Data Structures Behind The Scenes
l2hyunwoo
0
480
AIコーディングAgentとの向き合い方
eycjur
0
280
Featured
See All Featured
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
33
2.4k
4 Signs Your Business is Dying
shpigford
184
22k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
61k
KATA
mclloyd
32
14k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
29
1.9k
Scaling GitHub
holman
463
140k
StorybookのUI Testing Handbookを読んだ
zakiyama
31
6.1k
What’s in a name? Adding method to the madness
productmarketing
PRO
23
3.7k
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
How To Stay Up To Date on Web Technology
chriscoyier
790
250k
Statistics for Hackers
jakevdp
799
220k
Context Engineering - Making Every Token Count
addyosmani
3
58
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