Wednesday 19 June 2019

Android Studio from Basic Development Introduction with Presentation


Android 9 Pie Updates


Updated Android 9 (API level 28) introduce great new features and capabilities for users and developers.

Some important features points are given below.
  • Device Indoor positioning with Wi-Fi RTT
- support for the IEEE 802.11mc Wi-Fi protocol
- The device must have location services enabled and Wi-Fi scanning turned on
- Need ACCESS_FINE_LOCATION permission
  • Device Display cutout support
- lets you find out the location and shape of the non-functional areas where content shouldn't be displayed.
- use the getDisplayCutout() method.
- attribute, layoutInDisplayCutoutMode, allows your app to lay out its content around a device's cutouts.
- attribute

LAYOUT_IN_DISPLAY_CUTOUT_MODE_DEFAULT
LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER
  • Device Notifications Updated
 Enhanced messaging experience

- The Person class is used to identify people  their avatars and URIs
- other APIs, such as addMessage()
- The Person class also supports the Builder design pattern.

  • Device Channel settings, broadcasts, and Do Not Disturb
You can use the isBlocked() method 
up settings using the new getNotificationChannelGroup() method.
NotificationManager reference

  • Device now Multi-camera support and camera updates
ImageDecoder for drawables and bitmaps

  • Device Animation

HDR VP9 Video, HEIF image compression, and Media APIs
supported in the MediaMuxer and MediaExtractor classes


  • Device Data cost sensitivity in JobScheduler
  • Device Neural Networks API 1.1
  • Device having Autofill framework
  • Device Security enhancements
  • Device having Android Protected Confirmation
  • Device having Hardware security module
  • Device APK signature scheme with key rotation
  • Device Option to allow key decryption only on unlocked devices
  • Device have Legacy encryption support
  • Device Deprecation of WPS
  • Android backups
  • Device Client-side encryption backups
  • Define device conditions required for backup
  • Accessibility
  • Navigation semantics
  • Accessibility pane titles
  • Heading-based navigation
  • Group navigation and output
  • Window change details
  • Rotation
  • Text
  • Power management
  • Privacy changes
  • Limited access to sensors in background
  • Restricted access to call logs





Find Hours Diffrence in Kotlin

  In Kotlin, determining the difference in hours between two timestamps is a common task, especially in scenarios involving time-based calcu...