I used below code to open directly google play store whenever click on share button.
Used Kotlin Extension
//Share apk
fun shareApp(message : String, activity: Activity){
val sendIntent = Intent()
sendIntent.action = Intent.ACTION_SEND
sendIntent.putExtra(
Intent.EXTRA_TEXT,
message
)
sendIntent.type = "text/plain"
activity.startActivity(sendIntent)
}
in fragment ->
shareApp("https://play.google.com/store/apps/details?id=" + BuildConfig.APPLICATION_ID, requireActivity())
But it not redirected to play store directly , it redirected to browser and then open play store .
I want to open direct play store not from browser.
But it not redirected to play store directly? "directly"? Then how does it go if not directly?