![]() ![]() Finally, the application helped reduce the size of the necessary API calls, by utilizing Google’s location services. It also provides the security protocols so that variables designated as private can only be accessed via a specific application and user.Īn example of a SharedPreference implementation would include key customer data variables, such as a user name, unique user UUID and preferred car wash location. A SharedPreferences object points to a file containing key-value pairs and provides simple methods to read and write them. ![]() This was achieved by utilizing the Android SharedPreferences API. In addition to the Room library implementation, a small collection of key-value pairs was identified that could be stored locally and designated for extremely fast access. ![]() An example would be an API call that provided a directory of all the services available at a specific car wash which could then be accessed repeatedly during the customer’s visit at that specific location. The Room implementation allowed a local database to be updated at infrequent intervals and then accessed repeatedly for common queries. Room is an ORM, Object Relational Mapping library, which provides an abstraction layer over SQLite to allow fluent database access. After a discovery phase, Build Labs recommended using localized database using a Room persistence library. Since Internet connectivity can vary by location and surroundings (for instance, it can be lower inside a cement block wash bay), it was desirable to limit the overall number of connectivity requests. The application interacts with the back-end API to display available services and prices and to start and stop individual pieces of equipment at the selected car wash. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |