No Image

Passing data between activity and fragment

June 15, 2018 admin 0

step 1.to send data from fragment to activity Intent intent = new Intent(getActivity().getBaseContext(), TargetActivity.class); intent.putExtra(“message”, message); getActivity().startActivity(intent); step 2.to receive this data in Activity: Intent […]