两款手机均已提供所有付款应用程序,但列表大小为零:
private fun isUPIApp(): Boolean {
val uri = Uri.parse("upi://pay").buildUpon().build()
val upiPayIntent = Intent(Intent.ACTION_VIEW)
upiPayIntent.data = uri
if(packageManager.queryIntentActivities(upiPayIntent, 0).size > 0)
return true
else
return false
}