Hi all,
In my app I have to compare getLatitude() and getLongitude() with null in an
if statement to check, well, if they are null.
My statement looks like this:
if (location.getLatitude() != null || location.getLongitude() != null)
location is a Location variable. I am getting an error that I can not
compare these values as they are Doubles in nature and null is not valid
here with ||. How can I compare these?
Thanks
--
Raghav Sood
http://www.raghavsood.com/
http://wiki.androidappcheck.com/
http://www.telstop.tel/
https://market.android.com/developer?pub=Raghav+Sood
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en