jic5247 / ExtendedToDo

This is a extended update of SimpleTodo app
0 stars 0 forks source link

[Android Bootcamp] Project 0: ToDo - Ready For Review #2 #1

Open jic5247 opened 9 years ago

jic5247 commented 9 years ago

My app's extended version with tons of optional features is completed, please review. I got another side question here: When I implement SQLite in Android, what is the different between this two method "db.rawQuery(Query_string, null)" and "execSQL(Query_string)"? I ask this question because when I have Query_string = "UPDATE "+TABLE_NAME+" SET idx = idx - 1 WHERE idx > "+index; "execSQL(Query_string)" worked fine and "db.rawQuery(Query_string, null)" did not work at all. /cc @codepathreview @codepath

jic5247 commented 9 years ago

And I also have another question: when I implement the android's "DatePickerDialog" as a dialog, its onDateSetListener() will be heard twice when I press "set" and perform my override codes twice. Is this common an issue or just a bug of Android API? @codepathreview @codepath

nesquena commented 9 years ago

Looks good! Nice job on adding all the extensions.

This was intended in part to give you an introduction to the general rhythm of this course. The course is entirely project based with an app being assigned each week and then due the following week. Each project builds on the last to help each engineer to learn all practical Android development and best practices as quickly as possible. We also do a code review for each submitted project.

The next step is to continue working on extensions to your todo app and to schedule a short 5-10 minute phone conversation here. Navigate to today's date and onward from there and choose a 15-minute slot. Let us know if none of those times work.

Once you select a slot, can you make sure to include best number to reach you at? Look forward to chatting soon!

nesquena commented 9 years ago

db.rawQuery(Query_string, null)" and "execSQL(Query_string)"

exec returns the result directly but rawQuery returns a processed array list. See this guide.

And I also have another question: when I implement the android's "DatePickerDialog" as a dialog, its onDateSetListener() will be heard twice when I press "set" and perform my override codes twice. Is this common an issue or just a bug of Android API? @codepathreview @codepath

http://stackoverflow.com/a/19836410/313399 common issue