hi i want to make the coding case insensitive in android
i want to give an case insensitive statement in this line
if (listview_array[i].indexOf(et.getText().toString()) != -1)
where to give this case insensitive ? can any one help me ?
Tim Moores
Rancher
Joined: Sep 21, 2011
Posts: 2407
posted
0
The String class has a method that returns a lowercase variant of the string. If you apply that to both strings in your comparison it should work fine.