Android Question Is it possible to directly open the Google Settings --> Security --> Google Play Protect page ?

frankly

Member
Licensed User
Longtime User
i try

Dim i As Intent
i.Initialize("com.google.android.gms","com.google.android.gms.security.settings.VerifyAppsSettingsActivity")
StartActivity(i)

but i received


android.content.ActivityNotFoundException: No Activity found to handle Intent { act=com.google.android.gms dat=com.google.android.gms.security.settings.VerifyAppsSettingsActivity flg=0x20000 }
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Please use [code]code here...[/code] tags when posting code.

Correct code:
B4X:
Dim i As Intent
i.Initialize("", "")
i.SetComponent("com.google.android.gms/com.google.android.gms.security.settings.VerifyAppsSettingsActivity")
StartActivity(i)

Though it is worth wrapping it with Try / Catch as it is possible that not all devices support this intent.
 
Upvote 0
Top