The code comes from "Hello Android" Page47. I am using 1.6 since that is what the book is written for.
import android.app.Activity;
import android.os.Bundle;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
/** Called when the activity is first created. */
e1 @Override
e2 public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState),
setContentView(R.layout.main),
// Set up click listeners for all the buttons
error message e1 the annotation @override is dissallowed for this location
error message e2 Multiple markers at this line - Syntax error on token(s), misplaced construct(s) - Syntax error on token "void", @ expected - Syntax error on token ")", = expected
I have no idea whats wrong. The code is identical to the code in the book. I'm sure. TIA