         viewPager.setAdapter(viewPagerAdapter);             viewPager.setCurrentItem(MainActivity.addedDate);         }     }      @Override     public void onActivityResult(int requestCode, int resultCode, Intent data) {         if (resultCode == getActivity().RESULT_OK) {             Toast.makeText(getActivity().getApplicationContext(), "