From 59163987b6de4bad902e8da5f27b9f9d0023fec0 Mon Sep 17 00:00:00 2001 From: Xiaolei Yu Date: Sun, 23 Apr 2017 16:35:42 +0800 Subject: [PATCH] CB-12623: (android) use the new context getter to access Context --- src/android/Device.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }