google-settings

How to open and check whether Play Protect is enabled or disabled

ⅰ亾dé卋堺 提交于 2019-12-06 05:52:47
问题 minSdkVersion 18 targetSdkVersion 27 Using below code, I can able to open the Google Settings page. private static final String GOOGLE_SETTINGS_COMPONENT = "com.google.android.gms"; private static final String GOOGLE_SETTINGS_ACTIVITY = ".app.settings.GoogleSettingsActivity"; Intent i = new Intent(); i.setClassName(GOOGLE_SETTINGS_COMPONENT,GOOGLE_SETTINGS_COMPONENT + GOOGLE_SETTINGS_ACTIVITY); try { startActivity(i); } catch (android.content.ActivityNotFoundException ex) { Toast.makeText

How to open and check whether Play Protect is enabled or disabled

拜拜、爱过 提交于 2019-12-04 11:25:16
minSdkVersion 18 targetSdkVersion 27 Using below code, I can able to open the Google Settings page. private static final String GOOGLE_SETTINGS_COMPONENT = "com.google.android.gms"; private static final String GOOGLE_SETTINGS_ACTIVITY = ".app.settings.GoogleSettingsActivity"; Intent i = new Intent(); i.setClassName(GOOGLE_SETTINGS_COMPONENT,GOOGLE_SETTINGS_COMPONENT + GOOGLE_SETTINGS_ACTIVITY); try { startActivity(i); } catch (android.content.ActivityNotFoundException ex) { Toast.makeText(getApplicationContext(), "Activity Not Found", Toast.LENGTH_LONG).show(); } Is it possible to directly