我对日食和一般编程很陌生。谁能告诉如何在启动画面后返回主活动页面(主菜单)?目前它只是打开>启动屏幕>“停止工作”
package org.iimed.www;
import android.os.Bundle;
import android.app.Activity;
import android.view.View;
import android.widget.ImageButton;
import android.widget.Toast;
import android.view.View.OnClickListener;
public class MainActivity extends Activity {
ImageButton imageButton;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
public void AddListenerOnButton() {
imageButton= (ImageButton) findViewById (R.id.splash);
imageButton.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View argO) {
Toast.makeText(MainActivity.this,
"Welcome!", Toast.LENGTH_SHORT) .show();
}
});
}
});
}