Lines Matching refs:we
30 exactly where we left off at the end of the Notepadv2. </p>
34 <p>To fix this, we will move most of the functionality for creating and editing
41 <p>Instead, we are going to use the <code>DBHelper</code> class
42 to access the notes from the database directly. All we need passed into the
43 NoteEdit Activity is a <code>mRowId</code> (but only if we are editing, if creating we pass
50 the <code>extras</code> Bundle, which we were using to set the title
74 <p>In <code>NoteEdit</code>, we need to check the <var>savedInstanceState</var> for the
76 editing contains a saved state in the Bundle, which we should recover (this would happen
101 Note the null check for <code>savedInstanceState</code>, and we still need to load up
115 <p>Next, we need to populate the fields based on the <code>mRowId</code> if we
125 return any extra information to the caller. And because we no longer have
126 an Intent to return, we'll use the shorter version
186 and re-create resources as dictated by the Activity life-cycle, so we don't need to worry about
187 doing that ourselves. After that, we just look up the title and body values from the Cursor
200 <p>As we have already seen, the Android model is based around activities
217 <p>Still in the <code>NoteEdit</code> class, we now override the methods
220 (along with <code>onCreate()</code> which we already have).</p>
233 Activity ends, even if we instigated that (with a <code>finish()</code> call for example).
297 <p>Note that we capture the return value from <code>createNote()</code> and if a valid row ID is
298 returned, we store it in the <code>mRowId</code> field so that we can update the note in future
351 <p>Note that the <code>m</code> in <code>mNotesCursor</code> denotes a member field, so when we
352 make <code>notesCursor</code> a local variable, we drop the <code>m</code>. Remember to rename the