public static NoteFragment newInstance(long listId, long id, String note, String status) { NoteFragment f = new NoteFragment(); Bundle args = new Bundle(); args.putLong(ARG_LIST_ID, listId); args.putLong(ARG_ID, id); args.putString(ARG_NOTE, note); args.putString(ARG_STATUS, status); f.setArguments(args); return f; }