Tuesday, November 5, 2013

What Android 4.4 KITKAT version brings to you?

KITKAT or Android 4.4 is the latest version of android after JELLYBEAN. From the feature wise perspective KITKAT does not have much to boast.
In the  Android website, they say "Android 4.4 is designed to run fast, smooth, and responsively on a much broader range of devices than ever before — including on millions of entry-level devices around the world that have as little as 512MB RAM."

For developers they have introduced some new API's and tools to create responsive and memory efficient applications.

1.   RAM Memory Management:
A new API, ActivityManager.isLowRamDevice(), lets you tune your app's behavior to match the device's memory configuration. You can modify or disable large-memory features as needed, depending on the use-cases you want to support on entry-level devices.

           //Check if device is memory constrained
ActivityManager activityManager = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
boolean lowRam = ActivityManager.isLowRamDevice();
if (lowRam) {
// Modify memory use behavior
2.   Tools for analyzing memory use:
Procstats is a new tool for analyzing memory resources your app uses, as well as the resources used by other apps and services running on the system.