Skip to content

Instantly share code, notes, and snippets.

@robbiemu
Created April 9, 2016 16:10
Show Gist options
  • Save robbiemu/c436675007c372aa01035fc62adaf33f to your computer and use it in GitHub Desktop.
Save robbiemu/c436675007c372aa01035fc62adaf33f to your computer and use it in GitHub Desktop.
FavoritesContract.FavoritesEntry.ContentUris.CONTENT_URI,
new String[] {FavoritesContract.FavoritesEntry.COL_THEMOVIEDBKEY,
FavoritesContract.FavoritesEntry.COL_TITLE,
FavoritesContract.FavoritesEntry.COL_RELEASE_DATE,
FavoritesContract.FavoritesEntry.COL_VOTE_AVERAGE,
FavoritesContract.FavoritesEntry.COL_POSTER_PATH,
FavoritesContract.FavoritesEntry.COL_POSTER_TYPE,
FavoritesContract.FavoritesEntry.COL_BACKDROP_PATH,
FavoritesContract.FavoritesEntry.COL_OVERVIEW },
FavoritesContract.FavoritesEntry.COL_THEMOVIEDBKEY + " = ?",
new String[] { mId },
null);
@robbiemu
Copy link
Author

robbiemu commented Apr 9, 2016

        ContentValues testValues = new ContentValues();
        testValues.put(FavoritesContract.FavoritesEntry.COL_THEMOVIEDBKEY, mId);
        testValues.put(FavoritesContract.FavoritesEntry.COL_TITLE, TITLE);
        testValues.put(FavoritesContract.FavoritesEntry.COL_RELEASE_DATE, mMovie.getRelease_date());
        testValues.put(FavoritesContract.FavoritesEntry.COL_VOTE_AVERAGE, mMovie.getVote_average());
        testValues.put(FavoritesContract.FavoritesEntry.COL_POSTER_PATH, mMovie.getPoster_path());
        testValues.put(FavoritesContract.FavoritesEntry.COL_POSTER_TYPE, mMovie.getPoster_type());
        testValues.put(FavoritesContract.FavoritesEntry.COL_BACKDROP_PATH, mMovie.getBackdrop_path());
        testValues.put(FavoritesContract.FavoritesEntry.COL_OVERVIEW, mMovie.getOverview());

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment