Code example for CursorAdapter

Methods: getItem

        CheckInDialogFragment f = CheckInDialogFragment.newInstance(getActivity(), episodeTvdbId);, "checkin-dialog");
    private void onFlagEpisodeWatched(AdapterContextMenuInfo info, boolean isWatched) {
        Cursor item = (Cursor) mAdapter.getItem(info.position);
        new FlagTask(getActivity(), item.getInt(UpcomingQuery.REF_SHOW_ID))
                .episodeWatched((int), item.getInt(UpcomingQuery.SEASON),
                        item.getInt(UpcomingQuery.NUMBER), isWatched)
    public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
        int episodeId = (int) id;
        if (mDualPane) {
            // Check if fragment is shown, create new if needed. 
            EpisodeDetailsFragment detailsFragment = (EpisodeDetailsFragment) getFragmentManager()
Connect your IDE to all the code out there  Get Codota for Java