diff --git a/src/android/Device.java b/src/android/Device.java index b1a213d..dc874f7 100644 --- a/src/android/Device.java +++ b/src/android/Device.java @@ -98,7 +98,7 @@ public String getPlatform() { * @return android.provider.Settings.Secure.ANDROID_ID */ public String getUuid() { - return Settings.Secure.getString(this.cordova.getActivity().getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); + return Settings.Secure.getString(this.cordova.getContext().getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); } public String getModel() {