Thanks Mark just what I needed! I figured it was my syntax.
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Mark Murphy
Sent: Tuesday, February 16, 2010 3:27 PM
To: [email protected]
Subject: Re: [android-developers] if statement not validating???
Tommy wrote:
> At this point I have my if statement:
>
> if (reportlength=="d"){
Don't compare strings in Java with ==. Use equals():
if (reportlength.equals("d")) {
and so on.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy
_Beginning Android_ from Apress Now Available!
--
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
--
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