Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android architecture components liveData and room - what is minimum requirements?

I realize its in alpha stage, however I'd like to know if the android architecture components like liveData and room have any minimum requirements ? such as min android api/sdk etc. I looked here but its not showing me if there is any requirement. Can i assume i can use this right back to at least android ICS ?

like image 405
j2emanue Avatar asked Jun 02 '17 22:06

j2emanue


People also ask

What are the 4 different components of Android app architecture?

There are four components, each with a specific role: Room , ViewModel , LiveData , and Lifecycle . All of those parts have their own responsibilities, and they work together to create a solid architecture.

What is the minimum Android SDK?

Override the minimum value of SDK version. minSdkVersion is the minimum version of the Android operating system required to run your application. The Android app must have a minimum SDK version 19 or higher. If you want to support devices below API level 19, you must override minSDK version.

What is Android architecture and its components?

Android Architecture Components are a set of libraries to help with various challenges in dealing with Android architecture. Room handles database persistence. Lifecycle helps you create components that are aware of the current Android lifecycle state. ViewModel holds data and survives configuration changes.


1 Answers

Yes, you can assume that it goes back to ICS at least. Also starting support library version 26, minSdk becomes 14. So I assume new architecture libraries will be the same.

According to googlesamples, lowest API version is 14, which is Ice Cream Sandwich.

Here are the links to the gradle files for the minSdk 14 apps:

Github Browser Sample gradle file

Persistent Content Provider Sample

like image 99
umarov Avatar answered Oct 19 '22 15:10

umarov