By - 1,037,125 Followers - 84 Posts - Public

Stream

Android Developers

Shared publicly  - 
 
Here's a great example of how to use AnimatedVectorDrawable's to delight your users by +Nick Butcher
 
I recently saw a question on /r/androiddev asking how to implement a fancy animation… and decided to demonstrate how to do it using AnimatedVectorDrawable.

Here's a breakdown of how I did it: https://medium.com/@crafty/animation-jump-through-861f4f5b3de4

Or you can jump straight to the code here: https://gist.github.com/nickbutcher/97143b3240682e5c5851fe45b49fde93

#AndroidDev #AndroidDesign #Animation
9 comments on original post
249
32
Add a comment...
1 comment

Android Developers

Shared publicly  - 
 
Scheduling jobs like a pro with JobScheduler

One of the most important things with respect to background work is being as efficient and low impact as possible. JobScheduler works across the system to batch jobs together--meaning reduced battery drain, reduced memory pressure on API 24+ devices, and built-in awareness of Doze and App Standby.

Read the blog post for all the details and code examples: https://medium.com/@dontmesswithjo/scheduling-jobs-like-a-pro-with-jobscheduler-286ef8510129

https://www.youtube.com/watch?v=XFN3MrnNhZA&index=36&list=PLWz5rJ2EKKc-lJo_RGGXL2Psr8vVCTWjM

#BuildBetterApps
193
43
Raj Mal's profile photoMuhammad Umair's profile photo
11 comments
 
Pretty well handled by Nougat
Add a comment...

Android Developers

Shared publicly  - 
 
Building a DocumentsProvider

Android 4.4 KitKat introduced the Storage Access Framework, a common framework which allows apps use a system provided UI to request files from apps and from local storage. Your app can be an equal partner on that list by implementing a DocumentsProvider, making files your app owns available to other apps, all without needing the Storage permission or requiring you build your own file selection UI.

Watch the video to go through the required APIs needed for building a DocumentsProvider, then read the novel blog post for more details and all of the other functionality that you can add to a DocumentsProvider: https://medium.com/google-developers/building-a-documentsprovider-f7f2fb38e86a

See this video and many others in the full Android Development Patterns playlist: https://www.youtube.com/watch?v=LaMUvV-gOfE&list=PLWz5rJ2EKKc-lJo_RGGXL2Psr8vVCTWjM&index=10

#BuildBetterApps
274
35
Shanyce Evans's profile photoPotentialprince2's profile photo
5 comments
 
+Ian Lake
Hey man, i love your videos and energy.
What resource can i use if i want to build more of java for my app versus using xml. I want my users to save as much data as possible. Thanks Ian.
Add a comment...

Android Developers

Shared publicly  - 
 
Java 8 Language Features introduced with Android Nougat

With the help of the Jack toolchain, you’ll be able to use a number of Java 8 language features such as lambda expressions and method references back to Gingerbread! Apps running on Nougat devices also get access to the Stream APIs, default method implementations and static methods for interfaces, and repeatable annotations.

Watch the video for all the details on what exactly that means and how to enable Jack for your apps!

See this video and many others in the full #AndroidNougat playlist: https://goo.gl/Zcyv1c
269
45
Andrew Byrne's profile photoRafal Wachol's profile photo
16 comments
 
+Sergey Starodubtsev Scala works and Android pretty well
Add a comment...

Android Developers

Shared publicly  - 
 
Scoped Directory Access in Android Nougat

Scoped Directory Access is new to Nougat and provides an alternative to the storage permissions with two important differences:
- It gives you access to only a specific directory - don’t request access to the entire primary storage if you only need the pictures directory!
- It gives read and write access to SD cards and USB attached storage!

See this video and many others in the full #AndroidNougat playlist: https://www.youtube.com/watch?v=XBfQC4owUJg&index=8&list=PLWz5rJ2EKKc9tH0dRV1_HmQBXe_-qFQPl
183
42
黃李's profile photoIan Lake's profile photo
22 comments
 
+黃李 - you can file a feature request at code.google.com - android
Add a comment...

Android Developers

Shared publicly  - 
 
Background Optimizations in Android 7.0 Nougat

Android 7.0 Nougat contains a number of optimizations around background processing, intending to limit the amount of memory thrashing caused when many apps listen for the same implicit broadcast via manifest registered receivers, leading to poor overall system performance when the device is switching networks or when a picture or video was just captured.

When targeting API 24, you’ll no longer receive CONNECTIVITY_CHANGE broadcasts to manifest registered receivers (although runtime receivers will continue to work as your process is already in memory) - consider using JobScheduler to listen for network change events.

For all apps, regardless of whether they target API 24 or not, you’ll no longer be able to send or receive NEW_PICTURE or NEW_VIDEO broadcasts, usually sent immediately after taking a new picture or new video, respectively. Instead, use JobScheduler’s new ability to trigger based on content URI changes to kick off your job.

Check out the documentation for all of the details: https://goo.gl/k6gn4S
And learn all about JobScheduler in our previous video: https://youtu.be/XFN3MrnNhZA?list=PLWz5rJ2EKKc-lJo_RGGXL2Psr8vVCTWjM&index=12

#BuildBetterApps

https://youtu.be/vBjTXKpaFj8?list=PLWz5rJ2EKKc-lJo_RGGXL2Psr8vVCTWjM&index=14
237
39
Mark Keen's profile photojohn hager's profile photo
15 comments
Add a comment...

Android Developers

Shared publicly  - 
 
Quick Settings Tiles

While quick settings tiles such as WiFi, Bluetooth, and Airplane mode have been around for some time, Android 7.0 adds the ability for any app to provide their own quick settings tile, giving users quick access to the most important and frequent actions from your app.

Watch the video to learn about the lifecycle of your TileService, how to update your tile, and how to handle clicks, then read the blog post for all the details and a full rundown of the quick settings tile API: https://medium.com/google-developers/quick-settings-tiles-e3c22daf93a8

#AndroidNougat #BuildBetterApps

https://www.youtube.com/watch?v=xwvU6Pj3ATQ&list=PLWz5rJ2EKKc-lJo_RGGXL2Psr8vVCTWjM&index=13
171
39
Ndeshimona Asser's profile photoTesfaye Tamir's profile photo
11 comments
 
a great example that google play?
Add a comment...

Android Developers

Shared publicly  - 
 
Virtual Files, Alternative Mime Types, and the Storage Access Framework

New in #AndroidNougat, apps using the Storage Access Framework can now provide virtual files - files without a direct bytestream representation. While you can’t use openInputStream() with these virtual files, you can use Android 7.0’s alternative mime types to potentially transcode the files into alternative file formats or simply use them with an ACTION_VIEW Intent to open them in their native editor.

Check out the documentation on virtual files at https://developer.android.com/about/versions/nougat/android-7.0.html#virtual_files and read more about the Storage Access Framework at https://developer.android.com/guide/topics/providers/document-provider.html

#BuildBetterApps.
156
37
Ian Lake's profile photo
 
Really, really make sure you're either using CATEGORY_OPENABLE or handle virtual files appropriately!
Add a comment...

Android Developers

Shared publicly  - 
 
Media Playback Apps and the Support Library

When it comes to building a media playback app, the last thing you want to worry about is Android API level. With the restructure of the v4 Support Library and the introduction of the Media-Compat Support Library, knowing exactly what media APIs are available in what Support Library can save you time and effort as you #BuildBetterApps

https://medium.com/google-developers/meida-playback-and-the-must-have-android-support-library-apis-9f48dc6b657e
183
32
Android Developers's profile photo
9 comments
 
+Mateusz Klimek - expect further modularization between the Support Libraries in the future! You should definitely be using Support Fragments if you use fragments at all (there are many bug fixes and improvements that are only in the Support Fragments and Android N framework fragments).
Add a comment...

Android Developers

Shared publicly  - 
 
Developing for Direct Boot on Android Nougat

For some apps that schedule alarms and receive messages, delivering timely notifications is critical. With Android Nougat, we’re introducing the option for apps to run before the user unlocks the device after a reboot, so your users will never miss that important alarm clock in the morning.

Read the blog post for all the details: http://android-developers.blogspot.com/2016/04/developing-for-direct-boot.html

See this video and many others in the full #AndroidNougat playlist: https://www.youtube.com/watch?v=fb2Zwmc3Sp4&index=9&list=PLWz5rJ2EKKc9tH0dRV1_HmQBXe_-qFQPl
194
26
Evgeniy Orlov's profile photoQuynhanh Chung's profile photo
9 comments
 
Hay
Add a comment...