How can I solve this, I can do this in Activities, but I can't do this in Fragment.
Will it cause any issues and why?
Cannot resolve method 'getIntent' in fragment
String name = getIntent().getStringExtra("name")
String profile = getIntent().getStringExtra("image");
Full code here:
public class ProfileFragment extends Fragment {
FragmentProfileBinding binding;
…
Top comments (0)