aaronk Well-Known Member Licensed User Longtime User May 9, 2018 #1 Hi, Has anyone had a chance to look at Room yet? Room provides an abstraction layer over SQLite to allow fluent database access while harnessing the full power of SQLite. Apps that handle non-trivial amounts of structured data can benefit greatly from persisting that data locally. The most common use case is to cache relevant pieces of data. That way, when the device cannot access the network, the user can still browse that content while they are offline. Any user-initiated content changes are then synced to the server after the device is back online. Because Room takes care of these concerns for you, we highly recommend using Room instead of SQLite. https://developer.android.com/training/data-storage/room/
Hi, Has anyone had a chance to look at Room yet? Room provides an abstraction layer over SQLite to allow fluent database access while harnessing the full power of SQLite. Apps that handle non-trivial amounts of structured data can benefit greatly from persisting that data locally. The most common use case is to cache relevant pieces of data. That way, when the device cannot access the network, the user can still browse that content while they are offline. Any user-initiated content changes are then synced to the server after the device is back online. Because Room takes care of these concerns for you, we highly recommend using Room instead of SQLite. https://developer.android.com/training/data-storage/room/
DonManfred Expert Licensed User Longtime User Dec 30, 2018 #3 You can use ExternalLogger Library if you want (you can store just Strings as the library is not a real wrapper for the hole Idea but is it using Room as Database in behind. It is an Logger which can be used inside an B4A app to store and read LOGs. As you can mark each Logentry using a Tag (String too). You also could use it to store Data based on a specific Tag. And then read them back by Tag, date or Text stored. ExternalLogger It may give you a start to play with. Upvote 0
You can use ExternalLogger Library if you want (you can store just Strings as the library is not a real wrapper for the hole Idea but is it using Room as Database in behind. It is an Logger which can be used inside an B4A app to store and read LOGs. As you can mark each Logentry using a Tag (String too). You also could use it to store Data based on a specific Tag. And then read them back by Tag, date or Text stored. ExternalLogger It may give you a start to play with.
fredo Well-Known Member Licensed User Longtime User Dec 30, 2018 #4 Room seems to be an important component if you aim for an MVVM model. "Using this structure enables our code to be more reusable/modular, when compared to other patterns." Together with Informatix's Observables it would be more easily possible to create a useful app template that makes a solid foundation that forces the "separation of concerns". Upvote 0
Room seems to be an important component if you aim for an MVVM model. "Using this structure enables our code to be more reusable/modular, when compared to other patterns." Together with Informatix's Observables it would be more easily possible to create a useful app template that makes a solid foundation that forces the "separation of concerns".