fredo Well-Known Member Licensed User Longtime User Jan 17, 2019 #1 In an effort to create the next project with more modern possibilities, a look was taken at the relatively new "Android Architecture Components". An interesting introduction from Google's developer is here: Is it imaginable that there will be B4A Libraries of those important components in the near future? Just like in the Firebase world, the modules can be used individually and independently of each other. For example, "Room" could be the first module to considerably simplify an MVVM approach for non-trivial applications.
In an effort to create the next project with more modern possibilities, a look was taken at the relatively new "Android Architecture Components". An interesting introduction from Google's developer is here: Is it imaginable that there will be B4A Libraries of those important components in the near future? Just like in the Firebase world, the modules can be used individually and independently of each other. For example, "Room" could be the first module to considerably simplify an MVVM approach for non-trivial applications.
DonManfred Expert Licensed User Longtime User Jan 17, 2019 #2 fredo said: For example, "Room" could be the first module to considerably simplify an MVVM approach for non-trivial applications. Click to expand... Room depends on annotations which needs to be included in your own class to define your room-Database. The (java) Classes needs to be compiled by Android Studio to generate the desired Room-code. Writing a simple wrapper will not help with "Room" unfortunately. I did learned this lesson while write a wrapper for the ExternalLogger which is based on Room. See the Github project Source for an Example on Database and DAO classes needed. Last edited: Jan 18, 2019 Upvote 0
fredo said: For example, "Room" could be the first module to considerably simplify an MVVM approach for non-trivial applications. Click to expand... Room depends on annotations which needs to be included in your own class to define your room-Database. The (java) Classes needs to be compiled by Android Studio to generate the desired Room-code. Writing a simple wrapper will not help with "Room" unfortunately. I did learned this lesson while write a wrapper for the ExternalLogger which is based on Room. See the Github project Source for an Example on Database and DAO classes needed.