The Top 10 New Android L Features Developers Need to Know

681 views
586 views

Published on

Our Android team put together their top 10 list of new features developers need to know from the new Android L release.

Published in: Software
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
681
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
30
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

The Top 10 New Android L Features Developers Need to Know

  1. 1. 2012  –  ©  -­‐  All  Rights  Reserved A  Training  Division  Presentation The  Top  10  Android  L   Features  Developers   Should  Begin  to  Explore  
  2. 2. Course  Name Copyright  ©  Intertech,  Inc.  •  www.Intertech.com  •  800-­‐866-­‐9884   Slide  ‹#› Intertech Training ▪ Training through hands-on, real world business examples. • Our site, your site, or live online – globally. • Agile/Scrum, Citrix, VMware, Oracle, IBM, Microsoft, Java/Open Source, and web and mobile technologies. Consulting   ▪ Design and develop software that powers businesses and governments of all sizes.   ▪ On-site consulting, outsourcing, and mentoring.   ▪ Agile, .NET, Java, SQL Server, mobile development including iPhone and Android platforms and more…. Instructors Who Consult, Consultants Who Teach Our Company   ▪ Over 35 awards for growth, innovation and workplace best practices.   ▪ 99.7% satisfaction score from our consulting and training customers.   ▪ Yearly “Best Places to Work” winner in Minnesota.   !
  3. 3. Course  Name Copyright  ©  Intertech,  Inc.  •  www.Intertech.com  •  800-­‐866-­‐9884   Slide  ‹#› Introduction • Unveiled  at  Google  I/O  in  late  June,  Google  presented  the  next  release  of  the  Android  Operating   system.  According  to  the  Senior  vice  president  at  Google  in  Charge  of  Android,  “it  is  the  one  of   the  most  comprehensive  releases  we  have  done.”       ! •  As  a  developer  of  Android  applications,  you  should  know  there  really  are  a  significant  number   of  new  capabilities,  updates,  and  under-­‐the-­‐cover  improvements.  I  have  picked  the  top  10   Android  L  features  that  I  believe  developers  need  to  start  to  explore.  
  4. 4. Oxygen  Blast  Series Slide  ‹#› @IntertechInc                #oxygenblast 1. Notification Changes • Notifications can now be displayed on the lock screen in Android L. • As a developer, you will code the level of detail visible in lock screen notifications.The Notification.Builder.setVisibility() method will allow you to choose if the notification is public, private (only icon and basics), or secret (nothing). ! • Android L will also use metadata associated to the notification (priority, category, etc.) to better sort the notifications. ! • Further, high priority notifications ("heads-up" notifications) will immediately slide over the top of whatever is going on, but without completely obfuscating the screen. • I am sure many users will like the fact that notifications will now be synchronized in the cloud. Dismissing a notification on one device has it dismissed from another.
  5. 5. Course  Name Copyright  ©  Intertech,  Inc.  •  www.Intertech.com  •  800-­‐866-­‐9884   Slide  ‹#› • This is a new design language and guide for the user interface of Android L, but will also apply to all of Google's Web software. Along with a new theme, it provides some new user interface widgets, view shadows, and animations (some out of the box and the ability to customize your own). 2. MATERIAL DESIGN Android L's Material Light Dark Action Bar Theme (left) versus Android 4's Holo Light Dark Action Bar Theme (right)
  6. 6. Course  Name Copyright  ©  Intertech,  Inc.  •  www.Intertech.com  •  800-­‐866-­‐9884   Slide  ‹#› • The Dalvik Virtual Machine replacement known as Android Runtime or ART was introduced in KitKat (Android 4.4). With the 4.4 release, it was called "experimental" and optional (read about the ART introduction here). ! • With Android L, ART becomes the default runtime for Android applications. As a developer you should not have to code your applications any differently. ! • You simply reap the benefits of this new runtime, which include ahead-of-time (AOT) compiling and improved garbage collection for better performance along with enhanced debugging capabilities like improved diagnostic details for runtime exceptions. 3. ANDROID RUNTIME (ART)

  7. 7. Course  Name Copyright  ©  Intertech,  Inc.  •  www.Intertech.com  •  800-­‐866-­‐9884   Slide  ‹#› 4. STORAGE ACCESS FRAMEWORK • Another feature introduced in Android 4.4 was the Storage Access Framework (SAF). This framework made it easier for users to browse and open/use files on the device and across file storage services like Dropbox. In Android L, SAF has been enhanced and ease file access. Users can not grant read/write access to the contents of an entire directory subtree. ! • Additionally, Android L provides package-specific directories on shared storage (like the SD card) where your app can place media files. No new permissions are needed by your app to access this path. You can get the directory with a call to the new getExternalMediaDirs( ) method on a context object (like an Activity).
  8. 8. Course  Name Copyright  ©  Intertech,  Inc.  •  www.Intertech.com  •  800-­‐866-­‐9884   Slide  ‹#› • A new networking API in Android L allows your application to search for a network by transport protocol or other characteristic and make a connection to the network. The API is largely available through ConnectivityManager. ! • Applications can request a "suitable network" with a NetworkRequest object through the ConnectivityManager while also providing a callback (NetworkCallbackListener) to be invoked when Android locates the required network and makes the connection. 5. MULTIPLE NETWORK CONNECTIONS

  9. 9. Course  Name Copyright  ©  Intertech,  Inc.  •  www.Intertech.com  •  800-­‐866-­‐9884   Slide  ‹#› • Device cameras have become much more advanced. Android L has provided a new camera API (in android.hardware.camera2) to allow better image capture and processing. 6. NEW CAMERA API
  10. 10. Course  Name Copyright  ©  Intertech,  Inc.  •  www.Intertech.com  •  800-­‐866-­‐9884   Slide  ‹#› • Android 4.3 gave us Bluetooth Low Energy (LE) support. [Side note: Bluetooth LE is also known as Bluetooth Smart]. Bluetooth LE is a low-power consuming form of Bluetooth communication for things like proximity sensors, security sensors, health monitors (like a heart rate monitor or fitness monitor). ! ! ! • In Android 4.3, applications could use a new API to find devices and get info and services from the devices. In Android L, an Android device can serve as a Bluetooth LE device. This will allow Android devices (and apps) to be the health or fitness monitor as opposed to just communicate with one. 7. BLUETOOTH BROADCASTING
  11. 11. Course  Name Copyright  ©  Intertech,  Inc.  •  www.Intertech.com  •  800-­‐866-­‐9884   Slide  ‹#› • Perhaps one of the biggest changes in Android L - from both a developer and user perspective - is the work on power efficiency Google has put into this release. There are several facets to this feature. Project Volta (an umbrella project within Android L) was an initiative to improve Android device batter life. It provides a new battery saver mode, battery historian (for user views into app use of battery power on the device), system power optimizations and much more. ! • More tools are provided developers in this release to try to build applications that are better users of device power. Battery statistics on the usage of battery power can now be obtained through a adb shell call to dumpsys batterystats. 8. POWER UTILIZATION AND MEASUREMENT
  12. 12. Course  Name Copyright  ©  Intertech,  Inc.  •  www.Intertech.com  •  800-­‐866-­‐9884   Slide  ‹#› • WebView has been updated and now incorporates features you find in your laptop/desktop browser like WebGL (Web Graphics Library) and WebRTC (Real-Time Communications). ! • Developers will also be very happy that debugging of Web content is now available in WebView(myWebView.setWebContentsDebuggingEnabled(true) - could the method name to turn it on be any longer?). ! • Users will be happy that the performance and security of the WebView has been improved. 9. WEBVIEW API UPDATES
  13. 13. Course  Name Copyright  ©  Intertech,  Inc.  •  www.Intertech.com  •  800-­‐866-­‐9884   Slide  ‹#› • No, this last "feature" it is not technically part of Android L, but as Google indicates on the Android Studio Beta web page, Android Studio "will be the official Android IDE once it's ready," which is likely to be at or near the time of Android L's release. Android Studio is based on IntelliJ IDEA. ! • Eclipse has been the development communities' chief (some would say only) IDE since Android's inception. That is changing. The future of Android development lies in Android Studio. As a developer, it is time to become familiar with this tool and make plans to switch. Importantly, you will find getting into Android L will be easier using Android Studio (see below). 10. ANDROID STUDIO
  14. 14. Course  Name Copyright  ©  Intertech,  Inc.  •  www.Intertech.com  •  800-­‐866-­‐9884   Slide  ‹#› • The developer preview of Android L is available to the public. If you are interested in starting a more in-depth exploration of these and other Android L features, your first stop is the Android L Preview page at the developer.android.com web site. I highly recommend you download and install the Android Studio beta product to begin your exploration. It is the easiest way to test drive Android L as it is already built in to the offering - and again - Android Studio looks to be the future of Android development in the post Android 4.4 era. ! • As a warning, all features and APIs discussed in this post are a result of looking at the preview release of Android L. As Google has warned everyone - and I warn you - things are subject to change with the final release. DOING YOUR OWN FEATURE RESEARCH
  15. 15. Course  Name Copyright  ©  Intertech,  Inc.  •  www.Intertech.com  •  800-­‐866-­‐9884   Slide  ‹#› • The final release date for Android L is to be determined - as is its version number (most expect it to be 5.0 given the significant number of features and changes) and sweet treat name (those on the web seem to favor Lollypop to be the odds on favorite but no one claims factual insight - although the upcoming AnDevCon web site lists several tutorials with Lollypop in the name). ! ! • Some technology insiders have suggested Android L may be available on some platforms in time for the holiday shopping season (Oct-Dec 2014) - see here. FINAL RELEASE DATE
  16. 16. Course  Name Copyright  ©  Intertech,  Inc.  •  www.Intertech.com  •  800-­‐866-­‐9884   Slide  ‹#› Next Oxygen Blasts • August 13th • Creating Your Own Dynamic LINQ Statements with Expression Trees   September 3rd • Asynchronous Programming Techniques with .NET 4.5 
 Upcoming Webinars and Training Upcoming Training • Android Training • .NET Design Patterns • Sep 10th-12th • To learn more: http://bit.ly/1wBnImm

  17. 17. Course  Name Copyright  ©  Intertech,  Inc.  •  www.Intertech.com  •  800-­‐866-­‐9884   Slide  ‹#› Questions or Feedback? Patrick Schaber – pschaber@Intertech.com Thank You

×