Answers for "getextra from intent android"

6

intent in fragment android

Button button = (Button) rootView.findViewById(R.id.button1);
button.setOnClickListener(new View.OnClickListener() {
    @Override
    public void onClick(View view) {
        Intent intent = new Intent(getActivity(), AnotherActivity.class);
        startActivity(intent);
    }
});
Posted by: Guest on June-15-2020
0

activity get extras

Intent intent = getIntent();
Posted by: Guest on November-30-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language