Welcome to Now in Android, your ongoing guide to what’s new and notable in the world of Android development.
It’s been a few weeks since the previous Now in Android went live, before the holidays — let’s see what’s been happening in the Android universe in the meantime.
This Now in Android is also offered in video and podcast form. It’s the same content, but with less reading required. The article version (keep reading!) is still the place to come for links to all of the content that’s covered.
Click on the link below, or just subscribe to the podcast in your favorite client app. …
I’m sorry. I’m soooo sorry. Everything in the country, in society, in the entire universe is in such a terrible state right now, and it seems to just get worse all the time. So on behalf of me, I sincerely and deeply apologize. Because it is clearly my fault.
Let me explain.
Way back in 2019 (remember that year? Remember how exciting it was, when we could do things like leave our house, meet friends, or go to work? Oh, those carefree days of our youth), I had a freak biking accident. I’d like to say that I was flying down a windy coastal highway and slid into an epic crash while braking hard to avoid hitting an animal. Or that I went sailing over the handlebars and into a ravine while mountain biking. Or even that I was side-swiped by an aggressive and bike-blind driver on a busy Silicon Valley street. …
The man walked to the bottom of the stairs and yelled up to his wife.
“Honey! I need a present!”
The man’s wife yelled back, “A present? You want me to give you a present?”
He said, “No, I need to give a present. I’m going to this thing and I need to bring a gift. For a baby. Or for his parents. It’s not clear. But I have to get rolling; Bob and Pete are out front waiting for me.”
His wife came to the top of the stairs. She said, “So you want me to suddenly come up with a great present. Any reason why you couldn’t have given me more notice than this? Like maybe you could have mentioned this when I went shopping yesterday? Or — I know! — you could have actually gotten this yourself, instead of relying on me! …
Welcome to Now in Android, your ongoing guide to what’s new and notable in the world of Android development.
This Now in Android is also offered in video and podcast form. It’s the same content, but with less reading required. The article version (keep reading!) is still the place to come for links to all of the content that’s covered.
Click on the link below, or just subscribe to the podcast in your favorite client app.
In the previous article, I showed how content providers (which show up in an app’s merged manifest file) automatically load some libraries and modules at launch time.
In this article, I will cover the use of the AndroidX App Startup library to have more control over when and how those libraries get loaded. And maybe, just maybe, we’ll see how to save time at app startup along the way.
The simplest way to use App Startup is to implicitly use its content provider to initialize other libraries. You do this by telling App Startup how to initialize these other libraries and by removing their content providers from the merged manifest. …
I started playing with the AndroidX App Startup library recently. It reached 1.0 a couple of weeks ago, so I thought it was time to figure out why, when, and how to use it.
The first thing I realized was that its name, App Startup, implies perhaps a bit broader capability than it actually has. The library is not focused on general startup concerns (at least in its current incarnation); it is specifically aimed at minimizing the impact of initialization that happens automatically because of content providers.
Now maybe you’re like me and never thought about how libraries are initialized. And maybe this is because a lot of this happens behind the scenes. Specifically, you add a line to your build.gradle
file to include a library as a dependency and you’re done (apart from calling the APIs in that library — otherwise why did you add it?). …
Welcome to Now in Android, your ongoing guide to what’s new and notable in the world of Android development.
This Now in Android is also offered in video and podcast form. It’s the same content, but with less reading required. The article version (keep reading!) is still the place to come for links to all of the content that’s covered.
Click on the link below, or just subscribe to the podcast in your favorite client app.
I wrote this article to explain more about performance, startup testing, and the reasons behind the pieces I used for testing startup. But if you just want something quick here it is:
$ for i in `seq 1 100`
> do
> adb shell am force-stop com.android.samples.mytest
> sleep 1
> adb shell am start-activity -W -n com.android.samples.mytest/.MainActivity | grep "TotalTime" | cut -d ' ' -f 2
> done
The command above loops 100 times, launching an app, outputting the startup duration, and killing the process to get ready to do it all again. …
Welcome to Now in Android, your ongoing guide to what’s new and notable in the world of Android development.
This Now in Android is also offered in video and podcast form. It’s the same content, but with less reading required. The article version (keep reading!) is still the place to come for links to all of the content that’s covered.
Click on the link below, or just subscribe to the podcast in your favorite client app.
We’ve just finished the first series in the MAD Skills series of videos and articles on Modern Android Development. This time, the topic was Navigation component, the API and tool that helps you create and edit navigation paths through your application.
The great thing about videos and articles is that, unlike performance art, they tend to stick around for later enjoyment. So if you haven’t had a chance to see these yet, check out the links below to see what we covered. …
About