Nearly every app you build will use some kind of data. That data could be a single numeric value, or a complex relational database with multiple tables. This course helps you build Android apps that store, manage, and display data in a variety of forms and formats, using the Kotlin programming language and the latest tools and best practices for Android developers. Learn how to access data from internal resources and assets, external files, and web services; parse strings that are formatted with JSON; and display just the data you want to users. Instructor David Gassner also explains how to read from and write to text files and manage SQLite databases in Android-based applications. The course uses Kotlin—rather than Java—for all examples, leveraging its efficiency and brevity.
Managing Staff Instructor, LinkedIn Learning Technology Library at LinkedInDavid Gassner is the author of over 60 video-based technical training courses for software developers.
David is a senior staff instructor who specializes in development platforms and programming languages including Android and Java. He currently creates training content for Android developers and content that covers multiple programming languages including Java, C#, Visual Basic, and Go. He was formerly the president and founder of Bardo Technical Services, an Adobe Solutions Network Training Provider. As an Adobe Certified Expert, he wrote courseware for Adobe and delivered extensive training on Flex, ColdFusion, Dreamweaver and Flash. He was the author of Wiley's Flex 3 Bible and Flash Builder 4 and Flex 4 Bible. He most recently designed and developed Audio Cues—an Android app for running sound in live performances—which is available in the Google Play store.
Skills covered in this course
Mobile apps for a data-driven world“
- After you've defined your database entities and data access objects, there's one more critical step. Defining the database itself. Do this with an abstract class that extends a class named RoomDatabase. I'll create this new class in my data package and I'll name it Monster Database. I'll set the kindest class and create the file. This class will extend Room Database and it will be abstract. And that means that you can't instantiate the class directly in your code, instead you need an instance of a sub-class. And that will actually be handled for you by the room architecture component. Now above the class declaration add an annitation of database, and pass in three arguments. Entities is a list of entity classes. You put these in as a comma-delimited list inside a pair of square brackets. For each entity class, start with the name of the class, then colon, colon class. And again, if I had more than one entity I'd list them all here. Next I'll add a version and I'll set it to one. The…
Download courses and learn on the go
Watch courses on your mobile device without an internet connection. Download courses using your iOS or Android LinkedIn Learning app.
Watch this course anytime, anywhere. Get started with a free trial today.