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

Android Studio – Exception in thread "main" java.util.zip.ZipException: zip END header not found

I get such error while run a project in flutter. Why is this happening and how can I fix this error? Exception in thread "main" java.util.zip.ZipException: zip END header not found at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1581) at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1476) at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1483) at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1288) at…

VIEW QUESTION
Back To Top
Search