Cargando…

Android database programming : exploit the power of data-centric and data-driven Android applications with this practical tutorial /

This book is a practical tutorial approaching the topic with clear instructions and examples. With easy to understand examples and scenarios you can apply almost anywhere, this book walks you through both local and external data storage methods for the Android platform. "Android Database Progra...

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Wei, Jason
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham, UK : Packt Pub., Ltd., ©2012.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: Storing Data on Android; Using SharedPreferences; Common use cases for SharedPreferences; Checking if it's the user's first time visit to your application; Checking when the application last updated itself; Remembering what the user's login username was; Remembering an application's state; Caching a user's location; Internal storage methods; External storage methods; SQLite databases; Summary; Chapter 2: Using a SQLite Database; Creating advanced SQLite schemas
  • Wrappers for your SQLite databaseDebugging your SQLite database; Summary; Chapter 3: SQLite Queries; Methods for building SQLite queries; SELECT statements; WHERE filters and SQL operators; DISTINCT and LIMIT clauses; ORDER BY and GROUP BY clauses; HAVING filters and Aggregate functions; SQL vs. Java performance comparisons; Summary; Chapter 4: Using Content Providers; ContentProvider; Implementing the query method; Implementing the delete and update methods; Implementing the insert and getType methods; Interacting with a ContentProvider; Practical use cases; Summary
  • Chapter 5: Querying the Contacts TableStructure of the Contacts content provider; Querying for Contacts; Modifying Contacts; Setting permissions; Summary; Chapter 6: Binding to the UI; SimpleCursorAdapters and ListViews; Custom CursorAdapters; BaseAdapters and Custom BaseAdapters; Handling list interactions; Comparing CursorAdapters and BaseAdapters; Summary; Chapter 7: Android Databases in Practice; Local database use cases; Databases as caches; Typical application design; Summary; Chapter 8: Exploring External Databases; Different external databases; Google App Engine and JDO databases
  • GAE: an example with video gamesThe PersistenceManager and Queries; Summary; Chapter 9: Collecting and Storing Data; Methods for Collecting Data; A primer on web scraping; Extending HTTP servlets for GET/POST methods; Scheduling CRON jobs; Summary; Chapter 10: Bringing it Together; Implementing HTTP GET requests; Back to Android: parsing responses; Final steps: binding to the UI (again); Summary; Index