Learning Android by Marko Gargenta

Learning Android by Marko Gargenta

Author:Marko Gargenta [Marko Gargenta]
Language: eng
Format: epub
Tags: COMPUTERS / Programming Languages / General
ISBN: 9781449307240
Publisher: O'Reilly Media
Published: 2011-03-09T16:00:00+00:00


Most of the StatusData code is a direct cut-and-paste from DbHelper.java. This is because it now makes sense to make DbHelper an inner class because DbHelper now exists only in the context of StatusData and is private to it. In other words, outside of StatusData, no other part of the system is concerned with the fact that we are using a database to store our data. That also makes our system flexible, which we will see later with the use of Content Providers.

This is the private and final reference to the dbHelper instance. Making it final ensures that this object is created only once, whichever part of the system requests it first.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.