Context: I am developing an efficient open-source android launcher (view on GitHub). In its settings-activity is a button labeled Install apps
that is supposed to take the user to a store of his choice (F-Droid or the PlayStore).
Currently, the button is only capable of opening the PlayStore. Here's the corresponding code (minimal reproducible example):
// in the install buttons on-click listener:
val storeIntent = Intent(
Intent.ACTION_VIEW,
Uri.parse("https://play.google.com/store/apps/")
)
startActivity(storeIntent) // go to the store
Other posts on StackOverflow have shown me to use market://
URIs (from this answer) in order to open any store using an intent (and automatically let the user decide which store they want to go to). This is functional (and used in the app at another point) but not very helpful here, as we want to open the stores main / start page.
A plain market://
URI does not select any app to be opened and URIs starting with market://details
only are capable of searching ?q=
, filtering stores by categories ?c=
and of displaying app-details.
Is there an URI / Intent that can be used to take users to any store's main page (the system suggests capable market-apps)?