diff --git a/src/android/Device.java b/src/android/Device.java index e9efcb49..6e617787 100644 --- a/src/android/Device.java +++ b/src/android/Device.java @@ -109,7 +109,7 @@ public String getPlatform() { * @return */ public String getUuid() { - String uuid = Settings.Secure.getString(this.cordova.getActivity().getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); + String uuid = Settings.Secure.getString(this.cordova.getContext().getContentResolver(), android.provider.Settings.Secure.ANDROID_ID); return uuid; }