天道酬勤,学无止境

google-settings

如何打开并检查 Play Protect 是启用还是禁用(How to open and check whether Play Protect is enabled or disabled)

问题 minSdkVersion 18 targetSdkVersion 27 使用以下代码,我可以打开Google 设置页面。 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(); } 是否可以直接打开Google 设置-->安全--> Google Play 保护页面。

2021-10-20 11:29:06    分类:技术分享    android   android-intent   google-play   android-settings   google-settings

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

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

2021-06-10 21:40:18    分类:问答    android   android-intent   google-play   android-settings   google-settings