Android

Introducing Fresco: A new image library for Android

Most of Facebook’s announcements at its F8 developer conference this week were iOS-centric, but today, the company also released three new open source tools for Android developers.

The first is a performance segmentation library called Year Class that is meant to help developers quickly figure out what kind of device a user is running. Thanks to this, a developer can quickly tune an app for an older device by turning on some advanced animations, for example, or enable fancier features for more modern phones. For the most part, the tools use CPU speed, as well as the number of available cores and RAM to determine the “year class” of a given device.

The second new tool, Network Connection Class, does something similar, but for network connections. Turns out, just knowing that a user is on an HSPA connection doesn’t actually tell you all that much about the actual network speed. According to Facebook, the speed of HSPA connection can vary by 5x between networks, for example.

Using this new tool, developers can get a better idea of the kind of speeds their users are getting on their networks and tune their apps accordingly. Unlike Year Class, though, this takes a little bit more coding to set up, and the tool obviously has to first gather some data before you can actually tune your app according to the actual network speeds the user is getting.

The third tool, Fresco, is a new image library for Android apps. The idea here is to ensure that apps don’t run out of memory when they load multiple images by being smarter about memory management (those GIFs can get huge, after all) and streaming images when possible.

The system also handles basic functions like displaying placeholders and image caching. You can find the technical details about how exactly this works here.

An Android keyboard for people too lazy to type

N IT COMES to text-based communication tools, we’re experiencing a kind of Cambrian Explosion. Emoji has long gone mainstream, leading to a wave of niche Ikea emoticons and Saturday Night Live pictograms. Even this week’s New Yorker is a riff on emoji.

Amidst all this frivolous growth, it’s a welcome relief to find an app that gives you a shorthand to say what you really need to say—which, if we’re being honest, is oftentimes no more than: “kk,” or “damn.” That’s the premise of Lazyboard, an Android keyboard extension that lets you swiftly get one-tap access to all the lazy text lexicon you’re already relying on anyway.

device-2015-03-23-222839_framedClick to Open Overlay Gallery
Lazyboard
“I realized that on an off day, I type ‘k,’ ‘kk,’ ‘hmm’ and ‘lol’ more than anything else,” says developer Prem Adithya. “I also saw that these words were used in politely turning down an annoying conversation—or a conversation that I didn’t want to have with an annoying person. So then I thought, ‘Hey, what if there was a keyboard with just the essential words required to reply to people quickly?’” That became Lazyboard, a suite of canned replies such as “no,” “yeah,” “oh,” “haha,” and “cool.” The app also has a palette of sorta-kaomojis and this guy: ツ.

Adithya’s timing is hot, and not just because we’ve grown accustomed to speaking in a pictoral slang. If wrist-worn communication devices like the Apple Watch are going to be useful smartphone substitutes, they’re going to need to supply users with an easy way to stay in touch. So far, a lot of Apple’s context-sensitive predictive text offerings haven’t gotten much better than the painfully pre-packaged “On my way!” or “Talk later?” This is effectively the uncanny valley of automated texting, and no one wants to be there.

“Kk” and “cool” may be universal, but Lazyboard will soon become even more personal: Adithya is busy working on Lazyboard Pro, which will let users customize and program their own shortcuts.