Kastri icon indicating copy to clipboard operation
Kastri copied to clipboard

[ShareItems] Allow control over which apps can be shared to on Android

Open DelphiWorlds opened this issue 1 year ago • 2 comments

Original request came from Alisson Rodrigo Oliviera in the Telegram group

Implement an intent chooser where more than one package is specified, or simply use setPackage on the intent

DelphiWorlds avatar Nov 27 '24 19:11 DelphiWorlds

thanks

alissonrodrigo avatar Nov 27 '24 19:11 alissonrodrigo

As per my comment in the Telegram chat, you can target single apps by using the overload of the Share method that has the ATargetPackage parameter (pass the package name, e.g. com.whatsapp).

I'll leave this open anyway, as I have a solution for allowing the user to choose from more than one that could be specified in the call to Share

DelphiWorlds avatar Nov 27 '24 20:11 DelphiWorlds