aspose file tools*
The moose likes Android and the fly likes how to make case insensitive in android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "how to make case insensitive in android" Watch "how to make case insensitive in android" New topic
Author

how to make case insensitive in android

deepika deepi
Ranch Hand

Joined: Jan 23, 2012
Posts: 199
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: 2408
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.
deepika deepi
Ranch Hand

Joined: Jan 23, 2012
Posts: 199
ya got it. thank's
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to make case insensitive in android