smehraein / ToDoApp

CodePath Todo App
0 stars 0 forks source link

[Android Bootcamp] Project 0 - Review my app #1

Open smehraein opened 8 years ago

smehraein commented 8 years ago

The initial version of my project is complete! Please review.

I have one question about the app: What's the best way to pass information about objects between activities? I'm serializing/deserializing when I go to/from the edit view. Should I maybe keep my list of objects in a singleton that both views can access, and just send a parameter indicating the index of the object?

Thanks! I'm really looking forward to this course! I'll be working on improving the app in the coming weeks and reading up on Android and Java. Do you have any book or resource recommendations for pre-course?

/cc @codepathreview @codepath

nesquena commented 8 years ago

Soroush,

Looks good, this exercise is 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 learn the practical elements of Android development and best practices as quickly as possible. We also do a code review for each submitted project once the program begins.

Great to see you were able to complete some extension tasks already as well. The extension tasks available on each project are often the most valuable learnings since they dive deeper into common real-world Android use cases.

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

Once you select a slot, can you make sure to include the best number to reach you at in the invite? Look forward to chatting soon and having you participate in the course!

nesquena commented 8 years ago

Answering your questions:

I have one question about the app: What's the best way to pass information about objects between activities? I'm serializing/deserializing when I go to/from the edit view. Should I maybe keep my list of objects in a singleton that both views can access, and just send a parameter indicating the index of the object?

The best way to pass information between activities is using the intent system. You should avoid creating singletons (globals) in memory when possible in Android but you might create a Java class that represents the encapsulated information you want to pass between activities rather than having to pass along multiple distinct keys. Also the keys you pass through the intents should be stored as constants .putExtra(SOME_CONSTANT_HERE, ...) and then accessed on the other side using that same constant as well. We will discuss this in a lot more depth in the class.

Thanks! I'm really looking forward to this course! I'll be working on improving the app in the coming weeks and reading up on Android and Java. Do you have any book or resource recommendations for pre-course?

You can refer to our Android resources guide for recommendations of books and online content to review before the course. As you mentioned, a great way to continue learning leading up to the course is to continue adding onto the pre-work submission as well.