I try to compare data from db to String but its not valid... I put to db few informations, one int for time and few Strings. Then i get information from db and store them as table and show on ListView. Now I try to compare the values to show specyfic data. I know values in my table/db so I try:
if (value[i][2] == "Plain"){
}
But it's don't work. So i Try:
if (value[i][2] != "Plain"){
}
And i get full list also with items where value[i][2] == "Plain"
. I also make toast when OnItemClickListener and show
value[i][2]on it so I'm 100% sure
value[i][2]` it's Plain
Then I try:
String PlainTest = value[i][2];
if (value[i][2] == PlainTest){
}
And again it's correct...
I also try value[i][2].trim()
but still nothing
Any idea what else I can check? I know value I get from db. I can show it on list, I can show it on toast. But somehow i can't compare it to string
I don't get any errors. It's just like values don't match