标签: google-settings

如何以编程方式在Android中重置Google广告ID?

我正在尝试以编程方式重置Google Advertising ID以实现自动化目的.

我可以获取广告ID和isLimitAdTrackingEnabled.但我想以编程方式重置ID

https://developers.google.com/android/reference/com/google/android/gms/ads/identifier/AdvertisingIdClient.Info

用户可以手动重置谷歌设置应用程序中的谷歌广告ID.

android google-advertising-id google-settings

18
推荐指数
3
解决办法
3007
查看次数

如何打开并检查是启用还是禁用Play Protect

    minSdkVersion 18
    targetSdkVersion 27
Run Code Online (Sandbox Code Playgroud)

使用以下代码,我可以打开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();
 }
Run Code Online (Sandbox Code Playgroud)
  1. 是否可以直接打开Google设置 - > 安全性 - > Google Play保护页面.
  2. 如何启用或禁用" 扫描设备安全威胁"选项?

android android-intent google-play android-settings google-settings

4
推荐指数
1
解决办法
2845
查看次数