79126470

Date: 2024-10-25 16:10:29
Score: 3
Natty:
Report link

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?

Reasons:
  • Blacklisted phrase (0.5): how can I
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Roi1981