daleroy / android-instagram-4

MIT License
0 stars 0 forks source link

[Android Bootcamp] Project 3: Instagram Client - Ready for Review #1

Open daleroy opened 8 years ago

daleroy commented 8 years ago

My app is complete, please review./cc @codepathreview @codepath

codepathreview commented 8 years ago

Good job finishing all the stories. Below we've captured the most common issues with today's stories. Read through this point-by-point to determine how you could improve your submission.

  // this is the join table for posts and comments
  db.delete(TABLE_POSTS_COMMENTS, null, null);

  // posts reference both users and images
  db.delete(TABLE_POSTS, null, null);

  db.delete(TABLE_COMMENTS, null, null);

  // users and images refer to no other tables
  db.delete(TABLE_IMAGES, null, null);
  db.delete(TABLE_USERS, null, null);
   db.beginTransaction();
   try {
     ...
     db.setTransactionSuccessful();
   } finally {
     db.endTransaction();
   }
  List<InstagramPost> posts = new ArrayList<InstagramPost>();

  Intent intent = new Intent();
  intent.putExtra("posts", posts);

  // Extracting data on receipt of intent
  List<InstagramPost> fetchedPosts = getIntent().getParcelableArrayListExtra("posts");