我正试图在一个游戏中实现Google Play Services的成就。我已经跟踪了这文档中的步骤,一切都很好,除了运行时警告,然后是挤压。警告是:
06-09 10:43:05.900: W/PopupManager(17888): 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.我的应用程序正在使用openGL,该活动有一个扩展GLSurfaceView的成员mView。
我尝试过这和这 (我有所有的元标记和正确的app_id设置)。
此外,TypeANumber正确地以我的app_id开头。
有人能帮我吗?
编辑添加了一些代码
以下是活动声明:
public class GGActivity extends BaseGameActivity implements SensorEventListener, IDownloaderClient {下面是发生问题的onCreate (在free3dom建议的更改之后):
public GGView mView;
@Override protected void onCreate(Bundle icicle) {
setRequestedClients(BaseGameActivity.CLIENT_GAMES | BaseGameActivity.CLIENT_APPSTATE);
//if (DEBUG_BUILD)
{
enableDebugLog(true);
}
setContentView(mView); // make sure mView is created before
getGameHelper().createApiClientBuilder();
getGameHelper().getApiBuilder().setViewForPopups( mView );
super.onCreate(icicle);是的,setContentView帮了忙。谢谢!
发布于 2014-06-09 19:43:58
https://stackoverflow.com/questions/24120870
复制相似问题