Join David Gassner for an in-depth discussion in this video Editing an existing note, part of Building a Note-Taking App for Android (2013).
At this point, the note-taking app has the ability to add a new note and view it in…the editor, and return to the list screen but not yet to save the note to persistent…storage. Before I get to that step, though, I'd…also like the user to be able to touch one of the existing notes and be able to open…up that note in the editor screen. And it turns out that that takes a very…small amount of additional code. I'm working now in a project called edit…note. Which continues from the last exercise.…And I'll start in the main activity class. The main activity class extends list…activity. And that class has a method called…onlistitemclick. This method is called automatically when…the user touches one of the items in the list.…
When the method is called, you'll receive arguments that tell you which item was…selected and you'll be able to manipulate the application from there.…So, I'll go down to the bottom of the code, I'll go into Full Screen, and I'll…place the cursor after the last method, createNote.…And I'll create a new method called onlistitemclick because this is an…
Like its companions, this course will take you through building a complete mobile app from scratch; but this installment uses the Android SDK and Java to get the job done. Author David Gassner shows you how to install the SDK and the Android Developer Toolkit, create a project, save data on a device, build and control screen layouts, and create action bars and icons that control navigation.
These three related courses will use the same assets to develop the same app. (See Building a Note-Taking App for iOS and Building a Note-Taking App for Windows Phone 8 and Windows Store for more information.) Compare and contrast the different steps and discover the similarities and differences!
- Previewing the note-taking app
- Creating virtual devices for testing
- Unique concepts in Android
- Creating the Eclipse project
- Using local data storage
- Adding and retrieving data with the Shared Preferences API
- Creating screen designs
- Creating and editing notes
- Supporting older versions of Android with ActionBarSherlock