summaryrefslogtreecommitdiff
path: root/tutorials/NotepadCodeLab/Notepadv3Solution/src/com/android/demo/notepad3/NoteEdit.java
Commit message (Collapse)AuthorAgeFilesLines
* update notepad tutorial to change activity title in NoteEdit classScott Main2010-06-171-0/+1
| | | | Change-Id: I58e8919dab1b82696d11e5e578419f30b47b0737
* Match the tutorial documentation more closelyTom O'Neill2009-12-171-1/+2
| | | | | | Just undoing some white space changes that my previous CL introduced, in order to keep the formatting the same between the tutorial documentation and the actual code.
* Finish adding Makefiles for the Notepad tutorial.Tom O'Neill2009-12-161-20/+19
| | | | | | | | | | | | Add the missing makefiles for the non-solution versions of the tutorial code. Required providing missing imports in Notepadv2. Also standardized white spaces using Source > Correct Indentation in Eclipse and a few manual changes. This was done to minimize differences such as: diff -r Notepadv1 Notepadv1Solution diff -r Notepadv1Solution/src/com/android/demo/notepad1/ Notepadv2/src/com/android/demo/notepad2/ Change-Id: Ie8b10efd61f2200b3c741ea500a6924710ab54ed
* Fix Notepadv3Solution orientation changes during NoteEditTom O'Neill2009-12-111-3/+4
| | | | | | | | | | | | | | | | | | The current NoteEdit.java in Notepadv3Solution crashes on NPE when the screen orientation changes. This happens because a null Long is auto-unboxed to a long when used as an input to Bundle.putLong(String, long). The easiest solution is to use Bundle.putSerializable() instead. In addition duplicate notepad entries could result because mRowId was not necessarily defined when onSaveInstanceState(Bundle) was called. The solution to that is to call saveState() in that method. Fixes these buganizer bugs: Change-Id: Ice325f3b089867e4716deb48aefe8ec03f30ad55 http://b/issue?id=2266994 http://b/issue?id=2266962
* Extract and check in NotepadCodeLab.zip for change trackingTom O'Neill2009-12-101-0/+109
The 3-part Notepad tutorial is currently only available in the zip archive frameworks/base/docs/html/guide/tutorials/notepad/codelab/NotepadCodeLab.zip. This CL adds the uncompressed code to the repository so that there is a paper trail of future changes to the code.