Category: Mobile
-
Implementing Data Store in Android Project
Official Google Android Developer documentation encourages using DataStore, if you already have implemented SharedPreferences. It is recommended to not store complex data objects in SharedPreferences, for complex types, consider using Room Database. But, if you still wish to procced using DataStore for storing complex data objects, you can do it via Proto Data Store. Add…
-
Implementing Room in an Android Project
Persistence being a vital part of an application as you don’t want your users local data to be lost when they close your application. It only results in poor app experience. But a library called Room, built on top of traditional SQLite provides more robust and efficient way to store and retrieve that local data…
-
Removing an App programmatically in Android
While removing an app can be useful from the point of view of memory clean up in a project the communicates with other modules, it can be used with certain malicious intent. Regardless, here is how you can remove an app with some chunk of lines of code. Another method that is also viable, but…