Hi everyone,
I have a strange issue. I am new to java/android but come from a
programming background maybe I am just missing or doing something
stupid with syntax here. I have a string variable called reportlength
String reportlength;
I then go:
reportlength = intent.getExtras().getString("ReportLengt");
Now in my debug console for the variable reportlength it has it set as
"d" (that is the correct value it should have)
At this point I have my if statement:
if (reportlength=="d"){
do my stuff
}else if(reportlength =="m" || "w"){
do other stuff
}
When I physically set reportlength to "d":
reportlength=d;
It enters the if statement correctly however if i do it the way above
it does not enter the if statement at all even though reportlength is
showing the correct value when I debug. Can anyone tell me why this is
happening and how I can make it work as intended?
Thank you in advanced for your time and help
Tommy
--
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