Hello,
This post is in follow-up to the following topic:
http://groups.google.com/group/android-developers/browse_thread/thread/b566c0059c91a023/79c5618e7b9cef41
I'm unable to get a PopupWindow to work with a GLSurfaceView as its
contentView. The following error occurs when the popup becomes
visible:
03-23 23:34:22.166: WARN/WindowManager(1264): Attempted to add window
with token that is a sub-window: android.os.binderpr...@451cecf0.
Aborting.
WARN/WindowManager(1264): Requested window
android.os.binderpr...@451cfef8 does not exist
WARN/WindowManager(1264): java.lang.RuntimeException
WARN/WindowManager(1264): at
com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:
9305)
WARN/WindowManager(1264): at
com.android.server.WindowManagerService.windowForClientLocked(WindowManagerService.java:
9297)
WARN/WindowManager(1264): at
com.android.server.WindowManagerService.relayoutWindow(WindowManagerService.java:
2300)
WARN/WindowManager(1264): at
com.android.server.WindowManagerService
$Session.relayout(WindowManagerService.java:6868)
WARN/WindowManager(1264): at android.view.IWindowSession
$Stub.onTransact(IWindowSession.java:115)
WARN/WindowManager(1264): at
com.android.server.WindowManagerService
$Session.onTransact(WindowManagerService.java:6829)
WARN/WindowManager(1264): at
android.os.Binder.execTransact(Binder.java:301)
WARN/WindowManager(1264): at dalvik.system.NativeStart.run(Native
Method)
My code is basically the following:
onCreate(...) {
.....
mGLSurfaceView = new GLSurfaceView(this);
mGLSurfaceView.setEGLConfigChooser(8, 8, 8, 8, 16, 0);
mGLSurfaceView.setRenderer(new CubeRenderer(true));
mGLSurfaceView.getHolder().setFormat(PixelFormat.TRANSLUCENT);
mGlPopupWindow = new PopupWindow(mGLSurfaceView, 480, 640);
}
onButtonListenerCallback(...) {
......
mGlPopupWindow.showAtLocation(mSurfaceView, Gravity.CENTER, 0,
0);
}
Has anyone else been able to get this to work? I'm using 2.1
Thanks,
Dan
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
To unsubscribe from this group, send email to
android-developers+unsubscribegooglegroups.com or reply to this email with the
words "REMOVE ME" as the subject.