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
コードとあなたと私の距離 / The Distance Between Code, You, and I
hiro_y
0
190
kiroとCodexで最高のSpec駆動開発を!!数時間で web3ネイティブなミニゲームを作ってみたよ!
mashharuki
0
840
CSC509 Lecture 08
javiergs
PRO
0
230
contribution to astral-sh/uv
shunsock
0
440
One Enishi After Another
snoozer05
PRO
0
140
実践Claude Code:20の失敗から学ぶAIペアプログラミング
takedatakashi
16
6.5k
TransformerからMCPまで(現代AIを理解するための羅針盤)
mickey_kubo
4
2.3k
組込みだけじゃない!TinyGo で始める無料クラウド開発入門
otakakot
2
350
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
380
Claude CodeによるAI駆動開発の実践 〜そこから見えてきたこれからのプログラミング〜
iriikeita
0
320
XP, Testing and ninja testing ZOZ5
m_seki
3
790
Android16 Migration Stories ~Building a Pattern for Android OS upgrades~
reoandroider
0
130
Featured
See All Featured
Large-scale JavaScript Application Architecture
addyosmani
514
110k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
53k
Balancing Empowerment & Direction
lara
5
700
The World Runs on Bad Software
bkeepers
PRO
72
11k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.7k
It's Worth the Effort
3n
187
28k
What’s in a name? Adding method to the madness
productmarketing
PRO
24
3.7k
Site-Speed That Sticks
csswizardry
13
920
Typedesign – Prime Four
hannesfritz
42
2.8k
Agile that works and the tools we love
rasmusluckow
331
21k
The Illustrated Children's Guide to Kubernetes
chrisshort
49
51k
Raft: Consensus for Rubyists
vanstee
140
7.2k
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