Forum Xamarin.Android

Opening privacy settings on Android phone programmatically

JohnHardmanJohnHardman GBUniversity admin

Cross posting from Xamarin.Forms forum as this is Android-specific:

When I execute the following code on my Samsung phone, with action set to Android.Provider.Settings.ActionPrivacySettings, rather than the Privacy settings page opening, the "Backup and reset" page opens. Any ideas why it might open "Backup and reset"?

    Intent intent = new Intent(action);
    ComponentName componentName = intent.ResolveActivity(Forms.Context.PackageManager);

    if (componentName != null)
Sign In or Register to comment.