【发布时间】:2014-09-02 12:52:51
【问题描述】:
我当前的 Android 游戏使用 BaseGameActivity。
我的游戏使用了成就,需要时会解锁。
但是,我并不总是看到与解锁事件相关的弹出窗口。
我知道该弹出窗口仅在您首次解锁成就时出现。
一些弹出窗口看起来很好,其他(来自我游戏中的不同屏幕)永远不会出现。
我必须做些什么来保证弹出窗口出现?
我感觉它与此警告有关:
W/PopupManager(10725): You have not specified a View to use as content view for popups.
Falling back to the Activity content view which may not work properly in future versions
of the API.
Use setViewForPopups() to set your content view.
我在我的弹出窗口不显示的活动中调用了setViewForPopups(),但是,我从未见过它们。
如何调用setViewForPopups() 以使您的整个应用程序永远不会看到上面显示的警告消息?
【问题讨论】: