I am using Mobage Gaming API. And I want to resume to my Mobage Login screen.

I am using following code:

    @Override
    public void onResume() {
        super.onResume();
        if (Mobage.isInitialized()) {
            Mobage.getInstance().onResume();
            Log.d("MobageResume", "MobageResume onResume()");

        }
    }

Mobage.getInstance().onResume(); method is fired but nothing happens in the device. It is not display Mobage Login screen again.

有帮助吗?

解决方案

The issue is resolved now. It is due to AndroidManifest.xml in activity Android: launchMode=SingleTask. By removing this the Mobage Login screen is properly displayed. For detail Please see following link: Android: launchMode=SingleTask problem

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top