sourcemars / cocos2d-android-1

Automatically exported from code.google.com/p/cocos2d-android-1
0 stars 0 forks source link

how can i show ui from a scene #118

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create and show a scene with the function "runWithScene";
2. now, i want to show ui which is designed by login.xml, and the class to load 
named "login"
3. the code runs but the ui don't show, what can i do.

public void gotoLogin() {
    Intent intent = new Intent();
    intent.setClass(CCDirector.sharedDirector().getActivity(), Login.class);
            // 转向注册页面
    CCDirector.sharedDirector().getActivity().startActivity(intent);
}

Original issue reported on code.google.com by pcrazyc...@gmail.com on 19 Feb 2012 at 10:13