Android Database Best Practices

0
(0)

Android Database Best Practices
 

  • Author:Adam Stroud
  • Length: 288 pages
  • Edition: 1
  • Publisher: Addison-Wesley Professional
  • Publication Date: 2016-08-07
  • ISBN-10: 0134437993
  • ISBN-13: 9780134437996
  • Sales Rank: #2439587 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    Battle-Tested Strategies for Storing, Managing, and Sharing Android Data

    “Android™ Database Best Practices goes well beyond API documentation to offer strategic advice about how to handle data in an Android application and the tools needed to develop productively. This arms the developer with a trove of solutions to nearly any problem an application may face involving data. Mastering the concepts in this book are therefore essential for any developer who wants to create professional Android applications.”

    –Greg Milette, Android developer, Gradison Technologies, Inc.

    This is the first guide to focus on one of the most critical aspects of Android development: how to efficiently store, retrieve, manage, and share information from your app’s internal database. Through real-world code examples, which you can use in your own apps, you’ll learn how to take full advantage of SQLite and the database-related classes on Android.

    A part of Addison-Wesley’s Android™ Deep Dive series for experienced Android developers, Android Database Best Practices draws on Adam Stroud’s extensive experience leading cutting-edge app projects.

    Stroud reviews the core database theory and SQL techniques you need to efficiently build, manipulate, and read SQLite databases. He explores SQLite in detail, illuminates Android’s APIs for database interaction, and shares modern best practices for working with databases in the Android environment.

    Through a complete case study, you’ll learn how to design your data access layer to simplify all facets of data management and avoid unwanted technical debt. You’ll also find detailed solutions for common challenges in building data-enabled Android apps, including issues associated with threading, remote data access, and showing data to users. Extensive, up-to-date sample code is available for download at github.com/android-database-best-practices/device-database.

    You will

    • Discover how SQLite database differs from other relational databases
    • Use SQL DDL to add structure to a database, and use DML to manipulate data
    • Define and work with SQLite data types
    • Persist highly structured data for fast, efficient access
    • Master Android classes for create, read, update, and delete (CRUD) operations and database queries
    • Share data within or between apps via content providers
    • Master efficient UI strategies for displaying data, while accounting for threading issues
    • Use Android’s Intents API to pass data between activities when starting a new activity or service
    • Achieve two-way communication between apps and remote web APIs
    • Manage the complexities of app-to-server communication, and avoid common problems
    • Use Android’s new Data Binding API to write less code and improve performance

    Table of Contents

    Chapter 1 Relational Databases
    Chapter 2 An Introduction to SQL
    Chapter 3 An Introduction to SQLite
    Chapter 4 SQLite in Android
    Chapter 5 Working with Databases in Android
    Chapter 6 Content Providers
    Chapter 7 Databases and the UI
    Chapter 8 Sharing Data with Intents
    Chapter 9 Communicating with Web APIs
    Chapter 10 Data Binding

    中文:

    书名:Android Database Best Practices

    存储、管理和共享安卓系统数据的久经考验的策略

    “安卓™数据库最佳实践远远超越了应用编程接口文档,就如何处理安卓应用程序中的数据以及高效开发所需的工具提供了战略建议。这为开发人员提供了解决应用程序可能面临的几乎任何涉及数据的问题的大量解决方案。因此,对于任何想要创建专业安卓系统应用程序的开发人员来说,掌握本书中的概念都是必不可少的。

    -格雷格·米莱特,Gradison Technologies,Inc.安卓系统开发人员。

    这是第一个关注安卓系统开发中最关键的方面之一的指南:如何高效地存储、检索、管理和共享应用程序内部数据库中的信息。通过可以在您自己的应用程序中使用的真实代码示例,您将学习如何充分利用SQLite和安卓系统上与数据库相关的类。

    作为艾迪生-卫斯理面向经验丰富的安卓开发人员的安卓™深度潜水系列的一部分, 安卓系统 数据库最佳实践 利用Adam Stroud领导尖端应用程序项目的丰富经验。

    Stroud回顾了高效构建、操作和读取SQLite数据库所需的核心数据库理论和SQL技术。他详细介绍了SQLite,说明了安卓系统用于数据库交互的API,并分享了在安卓系统环境中使用数据库的现代最佳实践。

    通过一个完整的案例研究,您将学习如何设计您的数据访问层来简化数据管理的所有方面,并避免不必要的技术债务。您还将找到针对构建支持数据的安卓系统应用程序的常见挑战的详细解决方案,包括与线程、远程数据访问和向用户显示数据相关的问题。您可以从github.com/android-database-best-practices/device-database.下载大量最新的示例代码

    你会的

    • 了解SQLite数据库与其他关系数据库的区别
    • 使用SQL DDL向数据库添加结构,并使用DML操作数据
    • 定义和使用SQLite数据类型
    • 持久化高度结构化的数据以实现快速高效的访问
    • 用于创建、读取、更新和删除(CRUD)操作和数据库查询的精通安卓系统类
    • 通过内容提供商在应用程序内或应用程序之间共享数据
    • 掌握高效的用户界面策略以显示数据,同时解决线程问题
    • 在启动新的活动或服务时,使用安卓系统的Intents API在活动之间传递数据
    • 实现应用程序和远程Web API之间的双向通信
    • 管理应用程序到服务器通信的复杂性,避免常见问题
    • Use 安卓系统’s new Data Binding API to write less code and improve performance

    目录表

    第1章关系数据库
    第2章SQL简介
    Chapter 3 An Introduction to SQLite
    第4章安卓系统中的SQLite
    第5章在安卓系统中使用数据库
    Chapter 6 Content Providers
    第7章数据库和用户界面
    第八章与意向共享数据
    第9章使用Web API进行通信
    第十章数据绑定

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册