【发布时间】:2018-02-15 07:36:02
【问题描述】:
我正在制作的应用程序必须能够从 Google Drive 下载文件。因此,该应用程序应检查用户是否拥有 Google Drive。一个名为 DriveDetector 的类负责检查这些事实。实际上,基本上所有的安卓手机都有谷歌应用程序,包括谷歌驱动器。 Android 用户无法完全移除 Google Drive,但可以让 Google Drive 不可见。如何检查用户手机上的 GOOGLE 驱动器是否已激活?感谢阅读我的问题帖子。
import android.content.Context;
public class DriveDetector {
private Context context;
public DriveDetector (Context context) {
this.context = context;
}
public boolean hasGoogleDrive() {
}
}
【问题讨论】:
标签: android google-drive-android-api