Android fragment can't read bundle. Bundle is always NULL
问题 I wrote a custom static method to create my fragment. Fragment is a subclass of android.support.v4.app.Fragment class. Method to create my fragment is bellow. public static AddItemFragment newInstance(UUID listId, UUID itemId){ AddItemFragment fragment=new AddItemFragment(); Bundle bundle=new Bundle(); bundle.putSerializable(EXTRA_DATA_LIST_ID,listId); bundle.putSerializable(EXTRA_DATA_ITEM_ID, itemId); fragment.setArguments(bundle); return fragment; } In my onCreate method, I am attempting