Frage

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.

War es hilfreich?

Lösung

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

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top