Android Question Open in.. to receive data from other apps

Acuario

Active Member
Licensed User
Longtime User
I have an app that exports data to be used elsewhere.
The app has the option to "Open in.." that then lists loads of destinations (apps) such as WhatsApp, Gmail, Chrome etc.
How can I include my app in that list?
I want to receive the data or the location of the data that is exported so I can send it to a destination of my choice (actually as a file upload to another device).

Thanks.
 

b4x-de

Active Member
Licensed User
Longtime User
Have you extended your app to receive files?

Look here for receiving bitmaps:
 
Upvote 0

zed

Active Member
Licensed User
Try adding this to the manifest
Manifest:
AddActivityText(Main,
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>)
Your application will be offered to open "images", change the Mime type accordingly.
 
Upvote 0

Acuario

Active Member
Licensed User
Longtime User
I changed to text/plain but it still isn´t offered. I also tried text/* but nothing either.
I also tried with a release app rather than debug (via B4A bridge) but no luck either.

I tried the File Provider - share files example but this doesn´t work either.

It seems it is irrelevant if the destination app is running or not. Somehow the destination app is registered as a valid destination for a file to be sent to and will be opened automatically if it is selected as the destination.

Any more suggestions?
 
Last edited:
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…