我正在尝试使用Google Play游戏服务在游戏中添加排行榜。
在我显示排行榜和提交分数扩展屏幕的类中,我创建了扩展BaseGameActivity的屏幕,这是使用谷歌Play游戏服务所必需的。
当我启动app的时候,我得到了这个错误:
java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
at android.os.Handler.<init>(Handler.java:197)
我的cocos2d-x游戏在进入后台时崩溃。以下是来自AppDelegate的一些代码:
// This function will be called when the app is inactive. When comes a phone call,it's be invoked too
void AppDelegate::applicationDidEnterBackground()
{
CCDirector::sharedDirector()->pause();
CCUserDefault::sharedUserDefault()->flush(
我是拉勒维尔的新手。我对拉拉的关系有问题。你们能帮帮我吗?
我有四张桌子:
用户
团队
游戏
采摘
Pick是我的中间表模型
id
user_id
team_id
game_id
用户类
class User extends Model
{
public function picks()
{
return $this->hasMany('App\Models\Pick');
}
}
团队类
class Team extends Model
{
public function picks()
{
我的游戏有一个后台控制器,它决定应用程序在BG中应该重新加载多长时间。但是,android中似乎有一个bug,它杀死了一个进程,并使游戏重新启动。日志是:
11-02 11:05:14.725 1619 4874 I ActivityManager: Process com.google.android.webview:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:0 (pid 9665) has died:
11-02 11:05:14.866 1619 2222 W ActivityMan
这是从Google控制台拒绝的应用程序错误。
Issues with submitted video
We were unable to view the video you provided in your declaration.
Your video should show the in-app feature’s functionality showing usage of location in the background, and how a user would trigger the prominent disclosure, runtime permission (wi
我从我的play开发者控制台收到这个错误:-
java.lang.RuntimeException: Can't create handler inside thread that has not called Looper.prepare()
at android.os.Handler.<init>(Handler.java:121)
at android.app.Dialog.<init>(Dialog.java:101)
at android.app.AlertDialog.<init>(AlertDialog.java