/
Unravelling Android N Unravelling Android N

Unravelling Android N - PowerPoint Presentation

debby-jeon
debby-jeon . @debby-jeon
Follow
343 views
Uploaded On 2019-11-22

Unravelling Android N - PPT Presentation

Unravelling Android N Suyash Gupta A Quick Settings in N Video How to make a Custom Tile For your App Updating the Android manifest to support a custom Quick Settings tile Registering a custom ID: 766799

device android settings work android device work settings quick api tile apps support vulkan google mode doze owners system

Share:

Link:

Embed:

Download Presentation from below link

Download Presentation The PPT/PDF document "Unravelling Android N" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

Unravelling Android N Suyash Gupta

A) Quick Settings in ‘N’

Video

How to make a Custom Tile For your App Updating the Android manifest to support a custom Quick Settings tile. Registering a custom ‘ TileService ’ to respond to click events. Changing the UI of the Quick Settings tile. Launching a dialog box in response to users clicking the Quick Settings tile.

Prerequisites Android Studio version 2.0+ A test device with Android 6.0+ Or emulator A USB micro to USB cable, if it ’ s a device.

Update the Tile UI

Demo

B) Display Size Zoom varies from 0.85x and 1.5x roughly, with the maximum zoom being limited to what is an effective 320dp resolution.

C) Doze Mode Uses sensors to detect if the phone is stationary, display is off and not charging is termed as ‘ idle ’. Postpones syncs , jobs, and alarms to a later period in batches Resumes when the device m oves or screen unlocked or charging. Benefits: Better battery back up when idle Google claims s tandby can improve upto 2x battery life.

Doze Mode (M)

Doze (Android N) 11 Wakelock,Alarm Wifi/Gps works

Doze ( Second-Level) 12

ART:Android Runtime ART : A software layer between Applications and OS which provide execution environment to Apps.

In 2014

Example of Installation Google has promised that a new optimized compiler will be able to install third-party applications 75% faster. Ondrive install on Nexus 9(Android ‘N’): 5 seconds Ondrive install on Nexus 9 (Android 4.4.1): 33 seconds

Project Svelte ConnectivityManager.CONNECTIVITY_ACTION ( Wifi ) Camera.ACTION_NEW_PICTURE Camera.ACTION_NEW_VIDEO # Alternative Use of Job Scheduler Register for new media updates and do you job against it.

Android for WORK Google aims for the enterprise with separate work and home data on a single device!!

Android For

WORK MODE OFF

1.Always on VPNAlways-on VPN lets the device automatically start up a work VPN at boot time, so that apps can only access the internet through a "secure" connection .

2.Setting up an Android for Work device will potentially be a much faster process, now that the setup wizard for work profiles supports QR code scanning.

3. Disabling Work mode from quick settings

More Work Features Android for Work devices can now be remotely rebooted, as long as the device is corporately owned (the corporation is the device owner) and not just being used in a "bring your own device" (BYOD) environment (the corporation is just the profile owner). Device owners (i.e. not in a BYOD environment) have the option of disabling data roaming on a system level. Device owners can monitor and log all sorts of activities, including app launches, ADB activity, and screen unlocks. Device owners can remotely trigger and retrieve bug reports . Users can now disable location permissions for all work apps while still allowing personal apps to access location . Organizations can customize the work profile with corporate colors and logos.

Vulkan graphics in Android N Vulkan is a low-overhead, cross-platform 3D graphics and compute API

Vulkan Benefits Low level API, Low overhead(driver) than OpenGL and cross-platform 3d API. Pre compiled shaders , So less load on driver In turn, games taking advantage of the API can be made to look better - with motion blur - advanced reflections - water effects, - and all other sorts of eye candy

Multi-Locale System Settings Android N allows users to select multiple languages which can be re-ordered in terms of priority

Before Android ‘N’ Your app's default language is en_US (US English), and it also has Spanish strings localized in es_ES resource files. A device is set to es_MX

Improvement in ‘N’

Android Support Library 23.2 1. Support Vector Drawables and Animated Vector Drawables

How to use it

2. AppCompat DayNight theme(Prior to API 14)

This theme allows apps to easily support both a Light and Dark theme. By default, whether it is ‘night’ will match the system value ( from UiModeManager.getNightMode () ) But you can override that value with methods in AppCompatDelegate .

3. Design Support Library: Bottom Sheets BottomSheetDialog BottomSheetDialogFrgament It attached to any view at the bottom, You slide it up and down or take a peak.

4 . Recyclerview updates The RecyclerView widget provides an advanced and flexible base for creating lists and grids as well as supporting animations. This release brings an exciting new feature to the LayoutManager API: auto-measurement! Auto - measurement allows a RecyclerView to size itself based on the size of its contents . WRAP_CONTENT!!! WORKS!! :)

References: https://codelabs.developers.google.com/codelabs/android-n-quick-settings/index.html?index=..%2F..%2Fio2016#0 https:// www.khronos.org /assets/uploads/developers/library/overview/ vulkan-overview.pdf http:// www.phonearena.com /news/Heres-the-difference-Vulkan-graphics-in-Android-N-make-game-video-demo_id81282