Answers for "how do i provide a activity inside an adapter in android"

1

how to start activity in adapter android

button.setOnClickListener(v -> {
	Intent intent = new Intent(v.getContext(), SecondActivity.class);
    v.getContext().startActivity(intent);
 });

//how to start activity in adapter android
Posted by: Guest on July-11-2021

Code answers related to "how do i provide a activity inside an adapter in android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language