skip to Main Content

Android Studio – how to replace the startActivityForResult because its now deprecated this is the last piece i need to finish up my project

how to replace it with ActivityResultLauncher. sorry guys i am just new to coding and programming. SelectImageGallery.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(); intent.setType("image/*"); intent.setAction(Intent.ACTION_GET_CONTENT); startActivityForResult(Intent.createChooser(intent, "Select Image From Gallery"), 1); } });

VIEW QUESTION
Back To Top
Search