I created an application to download themes for popular messengers in Korea. This application of course requires a server to store theme files. I chose Google Drive as the server because the service is free and unlimited. When the user clicks the download button, the application downloads the theme from the Google Drive public link. There is no problem if the URL is opened with the Google Drive application.
However, the URL is opened with the Samsung Internet browser as shown in the image above. An example of Google Drive code is like this sentence, such as drive.google.com/file/d/FileCode/view?usp=sharing.
I want users to open URLs only with Google Drive.
Solution
Set packages for specific applications.
intent.setPackage( "com.google.android.apps.docs" );