简体   繁体   中英

Resume Mobage Login Screen in android

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM