从AndroidApplication类扩展的调用类

时间:2016-02-12 13:13:28

标签: java android class android-activity

我有一个简单的活动,我想打电话给那个班:

public class AndroidLauncher extends AndroidApplication {


@Override
protected void onCreate (Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    Intent intent = new Intent(this, MenuActivity.class);
    startActivity(intent);
    startApp();
}

public void startApp(){
    AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
    initialize(new MyGdxGame(), config);
}

有可能吗?

0 个答案:

没有答案