我尝试使用以下方式设置标记:
Marker marker=mMap.addMarker(
new MarkerOptions()
.position(new LatLng(13.058375,80.236052)));
但是当我运行它时,我不断收到此错误,我该怎么办?
09-22 09:59:09.928 7272-7272/? E/WindowManager﹕ android.view.WindowLeaked: Activity com.domobile.eframe.DatabaseErrorActivity has leaked window android.widget.FrameLayout{26b505bc VFE...C. .F...... 0,0-720,1134} that was originally added here
at android.view.ViewRootImpl.<init>(ViewRootImpl.java:375)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:261)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
at android.widget.PopupWindow.invokePopup(PopupWindow.java:1058)
at android.widget.PopupWindow.showAtLocation(PopupWindow.java:887)
at android.widget.PopupWindow.showAtLocation(PopupWindow.java:851)
at com.domobile.frame.ui.e.run(Unknown Source)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5312)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:901)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:696)
这是什么意思?
答案 0 :(得分:0)
首先,错误是没有与Marker相关的,在您退出该活动后尝试对Activity执行某些功能
请查看此内容以获得清晰理解