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

What's new in Android by Nav Singh

What's new in Android by Nav Singh

Dive into the new things that Android 13 brings us

Features: Predictive back gesture, Photo picker, Per-app language preferences.
Behavioral changes: Notification permission, Foreground services task manager, Granular media permissions, Intent filters block non-matching intents, Battery Resource Utilization, Clipboard preview, etc.Tools & IDE updates: Revamped LogCat, LiveEdit, Device mirroring, Preview annotation for multiple previews, Firebase Crashlytics integration, Accessibility scanner integration within IDE.

See the presentation : https://youtu.be/p983TPxEC8k

GDG Montreal

June 22, 2022
Tweet

More Decks by GDG Montreal

Other Decks in Programming

Transcript

  1. Nav Singh
    @navczydev
    What’s new in Android

    View Slide

  2. Agenda

    View Slide

  3. It’s time to update…
    targetSdk 33
    compileSdk 33

    View Slide

  4. Almost there...

    View Slide

  5. ● Runtime Notification permission
    ● Exact alarm permission
    ● Granular media permissions
    ● Runtime permission for nearby wifi devices
    ● Foreground Services task manager
    ● Intent filters
    ● Clipboard sensitive data protection
    Android 13
    Behavioral changes

    View Slide

  6. Android 13
    New features
    ● Per app language preferences
    ● Photo picker
    ● Predictive back gesture
    ● Clipboard preview
    ● Tile API
    ● Themed Icons
    ● Bluetooth LE Audio
    ● Support for MIDI 2.0 standard
    ● Faster hyphenation

    View Slide

  7. Permissions
    ● POST_NOTIFICATIONS
    ● READ_MEDIA_IMAGE
    ● READ_MEDIA_AUDIO
    ● READ_MEDIA_VIDEO
    ● USE_EXACT_ALARM

    View Slide

  8. Developer downgradable permissions
    ● Remove unused permissions
    revokeSelfPermissionOnKill()
    revokeSelfPermisisonsOnKill()
    ● To revoke all permissions from the system, all processes associated
    with the app must be killed.

    View Slide

  9. Safer exporting of context-registered receivers
    ● We can set the broadcast receiver to be
    exported or not
    ● RECEIVER_EXPORTED
    ● RECEIVER_NOT_EXPORTED

    View Slide

  10. Photo picker tool
    ● Intent action: MediaStore.ACTION_PICK_IMAGES
    ● Type: image or video
    ● Default limit: 1
    ● Extra: MediaStore.EXTRA_PICK_IMAGES_MAX

    View Slide

  11. Photo picker tool

    View Slide

  12. Clipboard enhancements
    ● Non-sensitive content ● Sensitive content

    View Slide

  13. Clipboard enhancements

    View Slide

  14. Quick settings placement API

    View Slide

  15. Intent filters
    ● The intent will only be delivered if it matches the intent filters defined
    by the exported component.
    ● If receiving app upgrades to >=13, all intents from external apps are
    delivered to an exported component only if it matches its declared
    elements, regardless of the sending app's target SDK
    version.

    View Slide

  16. Intent filters

    View Slide

  17. Intent filters

    View Slide

  18. Per App language - System settings
    ● Specify the supported languages in a resource file

    View Slide

  19. Per App language - System settings
    ● In the manifest application tag, add the property android:localeConfig

    View Slide

  20. Per App language - System settings

    View Slide

  21. Per App language - In-app language picker
    ● Specify the supported
    languages in a resource file

    View Slide

  22. Predictive back gesture
    ● It is possible to preview a back gesture's
    destination or result before completing
    it.

    View Slide

  23. Foreground service task manager

    View Slide

  24. Media controls - UX

    View Slide

  25. Themed app icons

    View Slide

  26. Themed app icons

    View Slide

  27. ● Accessibility scanner
    ● ADB over Wifi
    ● Animation preview
    ● Device manager/picker
    ● Google play sdk index
    ● App quality insights
    Tools & IDE improvements
    ● Revamped Logcat
    ● Live Edit
    ● Multi Preview annotations
    ● Recomposition count
    ● Device mirroring
    ● Visual linting
    ● Resizeable Emulator
    ● Emulated Bluetooth

    View Slide

  28. ● https://proandroiddev.com/notification-runtime-permission-android13-19
    0c796254d5
    ● https://proandroiddev.com/photopicker-compose-android-13-5fd834927
    0e0
    ● https://developer.android.com/about/versions/13/
    ● https://www.youtube.com/watch?v=3TLxH_G-PcM
    ● https://www.youtube.com/watch?v=vXqwRhjd7b4&t=466s&ab_channel=A
    ndroidDevelopers
    References

    View Slide

  29. Thank You!

    View Slide