i'm trying to provide the user with an option to find something in google play. i'm trying to use the Intent.createChooser but the chooser is not displayed, the market is just opened immediately without displaying the chooser.
i searched around and the closest thing was to declare the file type but i wish to open the market so this seems not relevant for me.
anyone has an idea?
val marketIntent = Intent(Intent.ACTION_VIEW)
marketIntent.data = Uri.parse("market://search?q=${file.extension}")
if(marketIntent.resolveActivity(packageManager)!=null) {
callback?.onSuccess(null)
startActivity(Intent.createChooser(marketIntent, "look for app in google play?").)
}