Introducing Android Instant Apps SDK 1.1

Jichao Li, Software Engineer; Shobana Ravi, Software Engineer

Since our public
at Google I/O, we have been operating exhausting to give a boost to the developer
enjoy of establishing quick apps. Today, we are excited to announce
availability of the Android Instant Apps SDK 1.1 with some highly-requested
options corresponding to stepped forward NDK give a boost to, configuration APKs for binary measurement
aid, and a brand new API to take care of person’s context once they transition from an
quick app to the put in app.

Introducing configuration APKs

For a super quick app enjoy, app binaries wish to be lean and neatly
structured. That’s why we are introducing configuration APKs.

Configuration APKs permit builders to isolate device-specific sources and
local libraries into unbiased APKs. For an software that makes use of
configuration APKs, the Android Instant Apps framework will simplest load the
sources and local libraries related to the person’s gadget, thereby decreasing
the whole measurement of the moment app at the gadget.

We recently give a boost to configuration APKs for show density, CPU structure
(ABI), and language. With those, we have now noticed a median aid of 10% within the
measurement of the binaries loaded. Actual financial savings for a given app rely at the quantity
of useful resource information and local libraries that may be configured.

As an instance, a person on an ARM gadget with LDPI display density and language set
to Chinese would then obtain device-agnostic code and sources, after which simplest
get the configuration APKs that experience ARM local libraries, the Chinese language,
and LDPI sources. They would no longer obtain any of the opposite configuration APKs
such because the x86 libraries, Spanish language strings, or HDPI sources.

Setting up configuration APKs on your app is an easy alternate on your gradle
setup. Just practice the stairs in our public

Persistent person context after set up

On Android Oreo, the inner garage of the moment model of the app is
immediately to be had to the put in model of the app. With this unencumber of the
SDK, we’re enabling this capability on older variations of the Android
Framework, together with Lollipop, Marshmallow, and Nougat gadgets.

To extract the inner garage of the moment app, put in apps can now name
the use of the Instant Apps Google Play Services API and get a ZIP record of the
quick app’s inside garage.

Check out our code pattern and
for extra main points on the best way to use this API.

Start development your Android Instant App

It’s easy to begin development your quick app on the newest SDK. Just open the
SDK Manager in Android Studio and replace your Instant Apps Development SDK to We can not wait to look what quick app stories you construct with those
new options.

Introducing Android Instant Apps SDK 1.1

Source link