mirror of
https://github.com/godotengine/godot.git
synced 2024-12-15 10:12:40 +08:00
9d33f51066
/godot_dev/platform/android/java/src/com/google/android/vending/expansion/downloader/impl/DownloaderService.java:575: Error: The WIFI_SERVICE must be looked up on the Application context or memory will leak on devices < Android N. Try changing to .getApplicationContext() [WifiManagerLeak] mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Explanation for issues of type "WifiManagerLeak": On versions prior to Android N (24), initializing the WifiManager via Context#getSystemService can cause a memory leak if the context is not the application context. Change context.getSystemService(...) to context.getApplicationContext().getSystemService(...). 1 errors, 0 warnings |
||
---|---|---|
.. | ||
export | ||
globals | ||
java | ||
android_native_app_glue.c | ||
android_native_app_glue.h | ||
AndroidManifest.xml.template | ||
audio_driver_jandroid.cpp | ||
audio_driver_jandroid.h | ||
audio_driver_opensl.cpp | ||
audio_driver_opensl.h | ||
build.gradle.template | ||
cpu-features.c | ||
cpu-features.h | ||
detect.py | ||
dir_access_android.cpp | ||
dir_access_android.h | ||
dir_access_jandroid.cpp | ||
dir_access_jandroid.h | ||
file_access_android.cpp | ||
file_access_android.h | ||
file_access_jandroid.cpp | ||
file_access_jandroid.h | ||
godot_android.cpp | ||
ifaddrs_android.cpp | ||
ifaddrs_android.h | ||
java_class_wrapper.cpp | ||
java_class_wrapper.h | ||
java_glue.cpp | ||
java_glue.h | ||
logo.png | ||
os_android.cpp | ||
os_android.h | ||
platform_config.h | ||
power_android.cpp | ||
power_android.h | ||
SCsub | ||
sign.sh | ||
thread_jandroid.cpp | ||
thread_jandroid.h |