在popupWindow里面添加VideoView 遇到这个问题。06-15 10:13:21.647: WARN/WindowManager(1373): Failed looking up window
06-15 10:13:21.647: WARN/WindowManager(1373): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@40b32820 does not exist
06-15 10:13:21.647: WARN/WindowManager(1373):     at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:8415)
06-15 10:13:21.647: WARN/WindowManager(1373):     at com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:8406)
06-15 10:13:21.647: WARN/WindowManager(1373):     at com.android.server.WindowManagerService.finishDrawingWindow(WindowManagerService.java:2585)
06-15 10:13:21.647: WARN/WindowManager(1373):     at com.android.server.WindowManagerService$Session.finishDrawing(WindowManagerService.java:5923)
06-15 10:13:21.647: WARN/WindowManager(1373):     at android.view.IWindowSession$Stub.onTransact(IWindowSession.java:258)
06-15 10:13:21.647: WARN/WindowManager(1373):     at com.android.server.WindowManagerService$Session.onTransact(WindowManagerService.java:5853)
06-15 10:13:21.647: WARN/WindowManager(1373):     at android.os.Binder.execTransact(Binder.java:336)
06-15 10:13:21.647: WARN/WindowManager(1373):     at dalvik.system.NativeStart.run(Native Method)
不清楚是什么问题,但是视频可以在这上面播发,有声音,没有图像。。还有以上的警告。。求指点。

解决方案 »

  1.   

    VideoView 中的控制框要关掉
      

  2.   

    我记得我最后改成surfaceview了
      

  3.   

    在PopupWindow 里面是用SurfaceView 来播放视频吗???说的是这个意思吗??
      

  4.   

    popWindow只能在videoView加载后才能显示出来,而videoView何时加载完成的时间是不可估计的 ,所以使用
    looper.myqueen.addHandler()来实现异步循环判断机制 在这里加载popWindow