The application is not registered in the Share menu as the ACTION_SEND intent handler

I have a free and paid Android application based on the same library key code with different names of subpackages, a simple logical switch of the full version and "LITE" in the name of the application for free. It is designed to receive image files and their processing. The AndroidManifest.xml file is configured as:

<intent-filter> <action android:name="android.intent.action.SEND" /> <action android:name="android.intent.action.SEND_MULTIPLE" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="image/*" /> </intent-filter> 

On all emulators and devices that I tested, both applications are displayed in the Share menu in the Gallery application, but I have a user report, he can only see the LITE version in the Share menu. The device is working 2.3. Presumably, the full version appeared once, but since then it has not been. It does not have this problem on another device with the same version of Android.

Has anyone heard or heard of a similar phenomenon and / or the reason for this?

+4
source share
3 answers

I will answer my question ...

Basically this was not a problem. The reason the application didn’t appear on the Share menu was because the “files” selected for “Share” were not local images stored on the device, but images in the gallery placed in Picassa (and thus they are actually stored on Google’s servers, therefore, are not accessible through the normal intention ACTION_SEND).

+2
source

Basically this was not a problem. The reason the application didn’t appear on the Share menu was because the “files” selected for “Share” were not local images stored on the device, but images in the gallery placed in Picassa (and thus they are actually stored on Google’s servers, therefore, are not accessible through the normal intention ACTION_SEND ).

+1
source

You should add android: schem = "file" to your data - this way your application will only start when sharing local files, not URLs (deleted).

0
source

Source: https://habr.com/ru/post/1392176/


All Articles