Andrei P Andrei P - 1 year ago 73
Android Question

Why can't I use intValue() in autocomplete?

As you can see in the picture below,

and also
don’t appear. If I type them manually, they are impossible to resolve. I’ve cleaned the project, reopened it, but nothing seems to resolve the problem. Anybody has an idea what’s wrong?
is a double.

<code>intvalue()</code> doesn’t appear

Answer Source

You've used double which is a so called "Primitive Data Type"

Change the dataType of currentTemp to Double (with a capital D) and .intValue() should become available.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download