Android Database Best Practices by Adam Stroud - Bookswagon
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Book 1
Book 2
Book 3
Home > Computing and Information Technology > Computer programming / software engineering > Apps programming > Android Database Best Practices: (Android Deep Dive)
Android Database Best Practices: (Android Deep Dive)

Android Database Best Practices: (Android Deep Dive)


     0     
5
4
3
2
1



Out of Stock


Notify me when this book is in stock
X
About the Book

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:
Preface xv Acknowledgments xix About the Author xxi   Chapter 1: Relational Databases 1 History of Databases 1 The Relational Model 3 Relational Languages 9 Database Languages 14 Summary 15   Chapter 2: An Introduction to SQL 17 Data Definition Language 17 Data Manipulation Language 28 Queries 32 Summary 37   Chapter 3: An Introduction to SQLite 39 SQLite Characteristics 39 SQLite Features 39 What SQLite Does Not Support 42 SQLite Data Types 43 Summary 44   Chapter 4: SQLite in Android 47 Data Persistence in Phones 47 Android Database API 47 Strategies for Upgrading Databases 58 Database Access and the Main Thread 60 Exploring Databases in Android 61 Summary 77   Chapter 5: Working with Databases in Android 79 Manipulating Data in Android 79 Transactions 87 Running Queries 89 Cursors 91 CursorLoader 94 Summary 99   Chapter 6: Content Providers 101 REST-Like APIs in Android 101 Content URIs 102 Exposing Data with a Content Provider 102 Exposing a Remote Content Provider to External Apps 108 Content Provider Contract 112 Allowing Access from an External App 114 Implementing a Content Provider 115 When Should a Content Provider Be Used? 132 Summary 135   Chapter 7: Databases and the UI 137 Getting Data from the Database to the UI 137 Cursors as Observers 143 Accessing a Content Provider from an Activity 145 Summary 161   Chapter 8: Sharing Data with Intents 163 Sending Intents 163 Receiving Implicit Intents 166 Building an Intent 167 ShareActionProvider 173 Summary 175   Chapter 9: Communicating with Web APIs 177 REST and Web Services 177 Accessing Remote Web APIs 179 Persisting Data to Enhance User Experience 206 Android SyncAdapter Framework 207 Manually Synchronizing Remote Data 218 Summary 229   Chapter 10: Data Binding 231 Adding Data Binding to an Android Project 231 Data Binding Layouts 232 Using Data Binding to Replace Boilerplate Code 242 Data Binding Expression Language 246 Summary 247   Index 249

About the Author :
Adam Stroud is an Android developer who has been developing apps for Android since 2010. He has been an early employee at multiple startups including RunKeeper, Mustbin, and Chef Nightly, and has led the Android development from the ground up. He has a strong passion for Android and open source and seems to be attracted to all things Android. In addition to writing code, has also written other books on Android development and enjoys giving talks on a wide range of Android topics including Android development and gaining root access on Android devices. He loves being a part of the Android community and getting together with other Android enthusiasts to “geek out”. Adam is currently the technical co-founder and lead Android architect at a new startup where he oversees the development of the Android app.


Best Sellers


Product Details
  • ISBN-13: 9780134438061
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison Wesley
  • Language: English
  • Series Title: Android Deep Dive
  • ISBN-10: 013443806X
  • Publisher Date: 25 Jul 2016
  • Binding: Digital download
  • No of Pages: 288
  • Weight: 1 gr


Similar Products

Add Photo
Add Photo

Customer Reviews

REVIEWS      0     
Click Here To Be The First to Review this Product
Android Database Best Practices: (Android Deep Dive)
Pearson Education (US) -
Android Database Best Practices: (Android Deep Dive)
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Android Database Best Practices: (Android Deep Dive)

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    Fresh on the Shelf


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!