user2728222
user2728222

Reputation:

How to make eclipse to show error line?

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 : eclipse screen shot

Upvotes: 0

Views: 2615

Answers (2)

M G
M G

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

Cob50nm
Cob50nm

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

Related Questions