diff --git a/android/src/main/java/com/amplitude/amplitude_flutter/AmplitudeFlutterPlugin.java b/android/src/main/java/com/amplitude/amplitude_flutter/AmplitudeFlutterPlugin.java index 4b460d4..6d4064a 100644 --- a/android/src/main/java/com/amplitude/amplitude_flutter/AmplitudeFlutterPlugin.java +++ b/android/src/main/java/com/amplitude/amplitude_flutter/AmplitudeFlutterPlugin.java @@ -146,29 +146,7 @@ public void onMethodCall(MethodCall call, final Result result) { result.success(getCurrentLocale()); break; case "advertisingId": - Thread thread = new Thread(){ - public void run(){ - try { - final String advId = getAdvertisingId(); - mActivity.runOnUiThread(new Runnable() { - @Override - public void run() { - result.success(advId); - } - }); - } catch (Exception e) { - mActivity.runOnUiThread(new Runnable() { - @Override - public void run() { - result.success(null); - } - }); - } - } - }; - - thread.start(); - + result.success(null); break; default: result.notImplemented();