This works perfectly fine on any google pixel device, but with Samsung device it throws an error ActivityNoFoundException.
no matter what I tried it is still throwing it.
val intent = Intent(Intent.ACTION_VIEW)
intent.data = Uri.parse(yourLPACode)
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
context.startActivity(intent)
how can I make it work for all androids?