Android Programming The Big Nerd Ranch Guide by Bill Phillips, Chris Stewart, Kristin Marsicano (z-lib.org)
Gutting CrimeLab Gutting CrimeLab Now that you have a database, your next step is to change a lot of code inside of CrimeLab, sw ...
Chapter 14 SQLite Databases Writing to the Database The first step in using your SQLiteDatabase is to write data to it. You wil ...
Inserting and updating rows Inserting and updating rows Now that you have a ContentValues, it is time to add rows to the databas ...
Chapter 14 SQLite Databases You may be wondering why you are not putting uuidString directly into the where clause. That would ...
Reading from the Database Reading from the Database Reading in data from SQLite is done using the query(...) method. SQLiteDatab ...
Chapter 14 SQLite Databases Using a CursorWrapper A Cursor leaves a lot to be desired as a way to look at a table. All it does ...
Using a CursorWrapper You will need to return a Crime with an appropriate UUID from this method. Add another constructor to Crim ...
Chapter 14 SQLite Databases Converting to model objects With CrimeCursorWrapper, vending out a List from CrimeLab will be strai ...
Converting to model objects The last important thing to do is to call close() on your Cursor. This bit of housekeeping is import ...
Chapter 14 SQLite Databases Refreshing model data You are not quite done. Your crimes are persistently stored to the database, ...
For the More Curious: More Databases This is also a good time to test that calls to updateCrime(Crime) in CrimeFragment work, to ...
Chapter 14 SQLite Databases For the More Curious: The Application Context Earlier in this chapter, you used the application con ...
15. Implicit Intents In Android, you can start an activity in another application on the device using an implicit intent. In an ...
Chapter 15 Implicit Intents Before you can create these implicit intents, there is some setup to do in CriminalIntent: add CHO ...
Adding a Suspect to the Model Layer Adding a Suspect to the Model Layer Next, open Crime.java and add a new member variable to g ...
Chapter 15 Implicit Intents Add the column in CrimeBaseHelper, also. (Notice that the new code begins with a quotation mark and ...
Using a Format String If CriminalIntent is already installed on your device, your existing database will not have the suspect co ...
Chapter 15 Implicit Intents In CrimeFragment.java, add a method that creates four strings and then pieces them together and ret ...
Parts of an implicit intent Parts of an implicit intent Here are the critical parts of an intent that you can use to define the ...
Chapter 15 Implicit Intents To respond to implicit intents, a DEFAULT category must be set explicitly in an intent filter. The ...
«
11
12
13
14
15
16
17
18
19
20
»
Free download pdf