Perhaps the import statement is missing. Try pressing Ctrl + Shift + O , Eclipse will automatically add an import statement if missing.
Then look at the top of the file and see what has been added. It should be something like this:
import android.content.Intent;
source share