Reputation:
i'm using eclipse indigo
my eclipse shows that there is some error but it doesn't show the red line and also doesn't show what the error is , it just shows that red cross icon
my eclipse screen shot :
Upvotes: 0
Views: 2615
Reputation: 1250
To show error line go to Preferences -> General -> Editors -> Text Editors -> Annotations -> Errors
and check Text as
to Native Problem Underline
Upvotes: 2
Reputation: 961
if you mouse over the little x's it should tell you the problem, the first error is that you need to add a cast to the find view by id so
ImageView imageView = (ImageView) findViewById(R.id.imageView1);
and I'm not 100% sure on the second one but it think it should be this, or something similar.
imageView.setImageURI(URI.parse(getIntent().getExtras().get(Intent.EXTRA_STREAM)));
Alternatively it might be because the setting of the image view was wrong.
Upvotes: 0