Code example for Bundle

Methods: putLong

    private static final String STATE_NUMBER = "number";
    private static final String STATE_PHONE = "phone";
    private static final String STATE_MESSAGE = "message";
    public static EntryEditDialogFragment newInstance(long id) {
        Bundle args = new Bundle();
        args.putLong("id", id);
        EntryEditDialogFragment fragment = new EntryEditDialogFragment();
        return fragment;
    public EntryEditDialogFragment() { 
    public Dialog onCreateDialog(Bundle savedInstanceState) {
        long id = getEntryId();
Connect your IDE to all the code out there  Get Codota for Java