Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Android N Preview, Android Studio 2.2 Preview e Novidades do Google I/O '16

Android N Preview, Android Studio 2.2 Preview e Novidades do Google I/O '16

Slides do talk realizado no DevFest Centro Sul Fluminense 2016, no dia 16 de julho de 2016, em Três Rios, RJ. Falei um pouco sobre as novidades do Android N Preview, Android Studio 2.2 Preview e as maiores novidades do Google I/O '16 para desenvolvedores Android.
--
Slides of a talk held in DevFest South Central Fluminense in 2016, on July 16, 2016 in Três Rios, RJ. I've talked a bit about the new features of Android N Preview, Android Studio 2.2 Preview and the biggest news of the Google I / O '16 for Android developers.

Walmyr Carvalho

July 16, 2016
Tweet

More Decks by Walmyr Carvalho

Other Decks in Technology

Transcript

  1. • Preview 1 (versão inicial, alpha) • Preview 2 (atualização

    incremental, beta) • Preview 3 (atualização incremental, beta) • Preview 4 (APIs finais e SDK oficial, publicação no Play) • Preview 5 (imagens de sistema quase finalizadas) • Versão final para AOSP e ecossistema
  2. Devices suportados: • Nexus 5X (Smartphone) • Nexus 6 (Smartphone)

    • Nexus 6P (Smartphone) • Nexus 9 (Tablet) • Nexus Player (Android TV) • Pixel C (Tablet) (No love for Nexus 5 :()
  3. // Outras opções nas classes Activity // e Fragment Activity.inMultiWindow()

    Activity.onMultiWindowChanged() Fragment.inMultiWindow()
  4. // Crie um objeto RemoteInput: String REPLY = "reply"; String

    replyLabel = getResources().getString(R.string.reply_label); RemoteInput remoteInput = new RemoteInput.Builder(REPLY) .setLabel(replyLabel) .build();
  5. // Adicione o RemoteInput dentro de um Notification.Action // (Similar

    ao Action usado no Android Wear): Notification.Action action = new Notification.Action.Builder(R.drawable.ic_reply_icon, getString(R.string.label), replyPendingIntent) .addRemoteInput(remoteInput) .build();
  6. // Crie uma notificação e adicione a sua action Notification

    notification = new Notification.Builder(context) .setSmallIcon(R.drawable.ic_message) .setContentTitle(getString(R.string.title)) .setContentText(getString(R.string.content)) .addAction(action)) .build(); // Dispare a notificação NotificationManager notificationManager = NotificationManager.from(context); notificationManager.notify(notificationId, notification);
  7. O Doze Mode é um conjunto de melhorias que garantem

    que seu dispositivo vai ter o melhor desempenho de bateria quando não estiver sendo usado (Ex: Na mesa, no bolso, etc)