Upload
keith-levi-lumanog
View
3.477
Download
0
Tags:
Embed Size (px)
DESCRIPTION
Android development for noobs - creating a note taking app from scratch
Citation preview
ANDROID DEVELOPMENTNOTE TAKING APP FROM SCRATCH
Monday, November 18, 13
CREATE AN ANDROID PROJECT
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Right Click
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Exercise : Create UI like shown below
Monday, November 18, 13
Solution
Monday, November 18, 13
CREATING THE APP
Monday, November 18, 13
Monday, November 18, 13
1. GET THE TEXT FROM TWO INPUT FIELDS
Monday, November 18, 13
Double click the textbox to switch to XML view
set id = etTitle set id = etNote
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
EXERCISE #2DO THE SAME THING FOR
“NOTE” EDITTEXT
Monday, November 18, 13
SOLUTION
Monday, November 18, 13
EXERCISE #3SET REFERENCE TO SAVE
BUTTON
Monday, November 18, 13
SOLUTION
Monday, November 18, 13
ONCLICK LISTENERS
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
WHAT’S WRONG WITH THE CODE?
Monday, November 18, 13
Monday, November 18, 13
SAVING DATA
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
when opening a file, always close it!
Monday, November 18, 13
Monday, November 18, 13
DDMS MODE
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
RETURN TO PREVIOUS PERSPECTIVE
Monday, November 18, 13
CREATE NEW ACTIVITY
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
MainActivity.java
Monday, November 18, 13
RUN AND TEST
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
EXERCISE #4 ADD NEW ACTIVITY IN MANIFEST FILE
Monday, November 18, 13
Monday, November 18, 13
RUN AND TEST
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
Monday, November 18, 13
RUN AND TEST
Monday, November 18, 13
EXERCISE #5Read the file without overriding the current file data
Monday, November 18, 13
USE STRING BUILDER
Monday, November 18, 13
FINISHING TOUCHES
READACTIVITY.JAVA
Monday, November 18, 13
MAINACTIVITY.JAVA
Monday, November 18, 13
main.xml
Monday, November 18, 13
THANKS!
GEEK FOR A CAUSEMonday, November 18, 13