How to open another application using your own? I have a VK button and by clicking I want to open the usual dialog box with a choice of applications. So I click on VK and while I have this choice: the Internet, Google, but I need to, what else would be “Vkontakte”. The user must define himself with the help of which he can open the link.

example: let's say the user must open the Vkontakte application through my launcher. He presses the VK button and opens the default dialog box with a choice of those applications with which Vkontakte can navigate. There will definitely be: Google, the Internet and he himself should add "Vkontakte" to the list of the dialog box

Here is the code itself, as I open the application

case R.id.btnGPlay: intent = new Intent(Intent.ACTION_VIEW, Uri.parse("https://vk.com")); startActivity(intent); break; 

1 answer 1

Apparently, it is impossible to simply add any application to the dialog box “End an action with the help of ..”, since for this purpose the developer of this application itself must indicate in the manifest that this application can be used for this operation. From your application, you can not influence this circumstance in another application.

The official guide on this issue.

You can add your own items to the "Send .." dialog

  • I probably did not say so. Another example: let's say the user has to open the Vkontakte application through my launcher. He presses the VK button and opens the default dialog box with a choice of those applications with which Vkontakte can navigate. There will definitely be: Google, the Internet and he himself should add "Vkontakte" to the list of the dialog box - Edward
  • @Eduard Do you need to add something to this list of choices than to open? Reissue the question so that it is clear what you want. - pavlofff