[Android Apps and Games] Jdbye:
I added code to auto-collapse the window when the focus is lost, and expand it when focus is gained. However, this has exposed what I believe may be a bug in your library. When I tap the window to expand it, it expands, and the rectangle around the window indicates it has focus. However, sometimes when I tap outside of the window after that, nothing happens, the rectangle indicator is still there and no matter how many times I tap nothing happens, as if it thinks it still has focus (or maybe it didn't gain focus correctly and therefore doesn't do anything since it thinks it doesn't have focus), and I have to tap the titlebar (sometimes twice) and tap outside again to make it work. My onFocusChange code always returns false, so I don't think that's the problem.

Also, I occasionally get this error that causes a crash:

09-15 00:05:05.112: E/AndroidRuntime(7247): android.view.WindowManager$BadTokenException: Unable09-15 00:33:16.492: E/AndroidRuntime(11878): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not valid; is your activity running?
09-15 00:33:16.492: E/AndroidRuntime(11878):	at android.view.ViewRootImpl.setView(ViewRootImpl.java:585)
09-15 00:33:16.492: E/AndroidRuntime(11878):	at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:326)
09-15 00:33:16.492: E/AndroidRuntime(11878):	at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:224)
09-15 00:33:16.492: E/AndroidRuntime(11878):	at android.view.WindowManagerImpl$CompatModeWrapper.addView(WindowManagerImpl.java:149)
09-15 00:33:16.492: E/AndroidRuntime(11878):	at android.widget.PopupWindow.invokePopup(PopupWindow.java:988)
09-15 00:33:16.492: E/AndroidRuntime(11878):	at android.widget.PopupWindow.showAsDropDown(PopupWindow.java:897)
09-15 00:33:16.492: E/AndroidRuntime(11878):	at android.widget.PopupWindow.showAsDropDown(PopupWindow.java:860)
09-15 00:33:16.492: E/AndroidRuntime(11878):	at wei.mark.standout.StandOutWindow$Window$2.onClick(StandOutWindow.java:2454)
09-15 00:33:16.492: E/AndroidRuntime(11878):	at android.view.View.performClick(View.java:4084)
09-15 00:33:16.492: E/AndroidRuntime(11878):	at android.view.View$PerformClick.run(View.java:16966)
09-15 00:33:16.492: E/AndroidRuntime(11878):	at android.os.Handler.handleCallback(Handler.java:615)
09-15 00:33:16.492: E/AndroidRuntime(11878):	at android.os.Handler.dispatchMessage(Handler.java:92)
09-15 00:33:16.492: E/AndroidRuntime(11878):	at android.os.Looper.loop(Looper.java:137)
09-15 00:33:16.492: E/AndroidRuntime(11878):	at android.app.ActivityThread.main(ActivityThread.java:4745)
09-15 00:33:16.492: E/AndroidRuntime(11878):	at java.lang.reflect.Method.invokeNative(Native Method)
09-15 00:33:16.492: E/AndroidRuntime(11878):	at java.lang.reflect.Method.invoke(Method.java:511)
09-15 00:33:16.492: E/AndroidRuntime(11878):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
09-15 00:33:16.492: E/AndroidRuntime(11878):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
09-15 00:33:16.492: E/AndroidRuntime(11878):	at dalvik.system.NativeStart.main(Native Method)

The error is a bit cryptic so I'm not sure if it's my getDropDownList code (but I have double checked that my code never passes 'null' as an argument, so I doubt it)

Whatever is causing it, it makes my app too unstable to be released to the public. Do you have any idea what might be wrong and if it could be a bug in your code?