Im trying to finish the first Android lesson and one of the errors I am getting is “Bundle cannot be resolved to a type”
Here is the code:
package com.example.myapp;
import android.app.Activity;
public class DisplayMessageActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
}
when i view the project properties it has “Android 2.1” by “Android Open Source Project” with platform 2.1 and API level 7. This is checked off as the project build target.
am i using the wrong project build target???
You need to add:
import android.os.Bundle;to your list of imports.