react-native-image-crop-picker icon indicating copy to clipboard operation
react-native-image-crop-picker copied to clipboard

No Activity found to handle Intent

Open maksymhcode-care opened this issue 10 months ago • 19 comments

Package version: react-native-image-crop-picker v0.42.0 React native version: react-native 0.77 Platform: android 15, emulator permission READ_MEDIA_IMAGES or READ_MEDIA_VIDEO granted Trying to open picker result in an error: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.provider.action.PICK_IMAGES typ=image/*

Image

maksymhcode-care avatar Jan 28 '25 09:01 maksymhcode-care

@ivpusic I'm sorry for tagging, but what could be the issue?

maksymhcode-care avatar Apr 23 '25 16:04 maksymhcode-care

Same issue here!

Versions: react-native-image-crop-picker: 0.42.0 react: 18.2.0 react-native: 0.73.2

Permissions:

    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
    <uses-feature android:name="android.hardware.camera" android:required="false" />
    <uses-feature android:name="android.hardware.camera.front" android:required="false" />

Error: No Activity found to handle Intent { act=android.provider.action.PICK_IMAGES typ=image/* }

leoleite13k avatar Aug 02 '25 22:08 leoleite13k

@maksymhcode-care did you find any solution?

ibrar-readyhubb avatar Aug 22 '25 12:08 ibrar-readyhubb

@maksymhcode-care did you find any solution?

No, but i don't have this issue with the latest version

maksymhcode-care avatar Aug 22 '25 12:08 maksymhcode-care

I am facing this issue with the latest versions

"react": "19.0.0", "react-native": "0.79.6", "react-native-image-crop-picker": "^0.51.0"

ibrar-readyhubb avatar Aug 22 '25 12:08 ibrar-readyhubb

I am facing this issue with the latest versions

"react": "19.0.0", "react-native": "0.79.6", "react-native-image-crop-picker": "^0.51.0"

If i'm not mistaken i think i updated the way i ask for permissions depending on a Android version

    <uses-permission
        android:name="android.permission.READ_EXTERNAL_STORAGE"
        android:maxSdkVersion="29" />
    <uses-permission
        android:name="android.permission.WRITE_EXTERNAL_STORAGE"
        android:maxSdkVersion="29" />
    <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
    <uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />
  const permissionOption =
    Platform.OS === "ios"
      ? PERMISSIONS.IOS.PHOTO_LIBRARY
      : DeviceInfo.getSystemVersion() >= "13"
      ? PERMISSIONS.ANDROID.READ_MEDIA_IMAGES
      : PERMISSIONS.ANDROID.READ_EXTERNAL_STORAGE;

  const permissionOption =
    DeviceInfo.getSystemVersion() >= 13
      ? PERMISSIONS.ANDROID.READ_MEDIA_VIDEO
      : PERMISSIONS.ANDROID.READ_EXTERNAL_STORAGE;

maksymhcode-care avatar Aug 22 '25 12:08 maksymhcode-care

Can you please share react, react-native & react-native-image-crop-picker version which work for you? And also android version if possible? Thank you

ibrar-readyhubb avatar Aug 22 '25 12:08 ibrar-readyhubb

Can you please share react, react-native & react-native-image-crop-picker version which work for you? And also android version if possible? Thank you

"react": "19.1.0",
"react-native": "0.81.0",
"react-native-image-crop-picker": "0.51.0",

maksymhcode-care avatar Aug 22 '25 13:08 maksymhcode-care

Hi @maksymhcode-care, are you testing it on an Android device with a 16KB page size? I think this issue is occurring on that emulator. Without this I think it's working fine, The issue is on device with 16kb page size.

@ivpusic Can you please check this

nilesh-simform avatar Sep 11 '25 08:09 nilesh-simform

Hi @maksymhcode-care, are you testing it on an Android device with a 16KB page size? I think this issue is occurring on that emulator. Without this I think it's working fine, The issue is on device with 16kb page size.

@ivpusic Can you please check this

I don't think i'm testing on a device with 16KB page size, everything works fine for me, but i can also try 16KB device

maksymhcode-care avatar Sep 11 '25 09:09 maksymhcode-care

Hi everybody. 2 days ago, I received an email from Google to update my app for 16kb memory pages before november 1st. Play store console is also telling us which libraries are not compatible for now with this. Here are the details for my app (it's in French, sorry, but no worries) :

[En savoir plus](https://developer.android.com/guide/practices/page-sizes#build)
Bibliothèques non compatibles avec les pages de 16 Ko :
lib/arm64-v8a/libreanimated.so
lib/arm64-v8a/libworklets.so
lib/x86_64/libreanimated.so
lib/x86_64/libucrop.so
lib/x86_64/libworklets.so

Like you can read, it seems crop-picker is using libucrop.so causing the issue, as well as the reanimated lib. For reanimated, I'm some versions behind so I'll check to update and for crop-picker too: "react-native-image-crop-picker": "^0.41.2"

I just wanted to know if I update to the latest if it's already resolved, or if that is a work in progress? Thanks guys! All the best!

Kowaio avatar Sep 15 '25 14:09 Kowaio

Hi @Kowaio 16kb page size requirement is already covered in latest version. you can upgrade to 0.51.0

nilesh-simform avatar Sep 15 '25 14:09 nilesh-simform

Oh great! I didn't see it in the changelog, might have missed it, sorry! Great work and thanks a lot!

Kowaio avatar Sep 15 '25 14:09 Kowaio

I'm still getting the following error:

android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.provider.action.PICK_IMAGES typ=image/* (has extras) }

"react": "19.1.0",
"react-native": "0.80.2",
"react-native-image-crop-picker": "^0.51.0",

This error occurs when using an Android Emulator with 16KB of memory. It works fine on all other emulators.

BhavyaCodeAlchemy avatar Oct 07 '25 07:10 BhavyaCodeAlchemy

No Activity found to handle Intent

teogomes avatar Oct 23 '25 13:10 teogomes

Yep, I'm getting this

android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.provider.action.PICK_IMAGES typ=image/* (has extras) }

with [email protected], [email protected] and [email protected], when testing on an emulator with 16kb page size enabled.

gezquinndesign avatar Oct 27 '25 11:10 gezquinndesign

@gezquinndesign How can i enable 16KB page size on android emulator?

yaroslav-naum avatar Oct 27 '25 11:10 yaroslav-naum

@gezquinndesign How can i enable 16KB page size on android emulator?

In Android Studio, you have to add a "16KB Page Size" image to your emulator - you should see it in the list of possible System Images.

Image

You can check if your emulator has it enabled by running adb shell getconf PAGE_SIZE which will then output 16384 if configured correctly.

gezquinndesign avatar Oct 27 '25 13:10 gezquinndesign

Looking at the code, the library is hardcoded to use the new Photo Picker API (PickVisualMedia / PickMultipleVisualMedia), which creates the PICK_IMAGES intent that's failing and there's no fallback. It's probably a facet of the 16kb page size image being experimental but I can't confirm this. Is it worth adding a fallback?

gezquinndesign avatar Oct 27 '25 14:10 gezquinndesign