メソッド launchAbout(null) は型 new View.OnClickListener() に対して未定義です{}
package org.example.asteroides;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
public class Asteroides extends Activity {
private Button bAbout;
@Override public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
bAbout =(Button) findViewById(R.id.Button03);
bAbout.setOnClickListener(new OnClickListener() {
public void onClick(View view) {
launchAbout(null);
}
});
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.asteroides, menu);
return true;
}
}