O'Reilly logo

Android™ Tablet Application Development For Dummies® by Donn Felker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 14

Getting Persistent with Data Storage

In This Chapter

  • Discovering data-storage media
  • Getting user permissions
  • Creating an SQLite database
  • Querying your database

Most applications these days require you to save information for later use. The Task Reminder application would not be that useful if it did not save the tasks, now would it? Thankfully, the Android platform — in combination with Java — provides a robust set of tools that you can use to store data.

This chapter delves deeply into creating and updating an SQLite database. Although in this chapter I explain the steps necessary to do these things, I do not provide a lot of database theory. If you're not familiar with the SQL language or the SQL database, I advise you to review the SQLite website for more information: www.sqlite.org.

This chapter is also very code intensive, and if you find yourself getting lost, feel free to reference the completed application source code — available online at this book's companion website.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required