rastabrane / websmsdroid

Automatically exported from code.google.com/p/websmsdroid
1 stars 0 forks source link

Implement accent-insensitive search (for "Name or number") #712

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If we have contacts such as "Sébastien Söderström" or "Joël" it would be 
nice if we could pick them just by typing "seb" or "joel" (ie: without the 
accents). 

Apps such as DialerOne already do this, and it's a great time saver for 
European users. 

Original issue reported on code.google.com by joel.bou...@gmail.com on 26 May 2012 at 7:29

GoogleCodeExporter commented 9 years ago
i'd like to, but i do not know how to get sqlite to do it.

Original comment by f...@ub0r.de on 17 Jun 2012 at 2:46

GoogleCodeExporter commented 9 years ago
Thanks for your response. I think the easiest way would be to add a new column 
that contains the name stripped of any accents, and to perform searches within 
that column instead.

To strip the accents, I think one could use String.replace() on API Levels < 9, 
and java.text.Normalizer on API Levels >= 9.

Original comment by joel.bou...@gmail.com on 19 Jun 2012 at 12:51

GoogleCodeExporter commented 9 years ago
Well, I have no control over the columns in the contacts table.

Original comment by f...@ub0r.de on 19 Jun 2012 at 3:26

GoogleCodeExporter commented 9 years ago
You're right of course... my bad. Maybe a SELECT * is the only way, then. I 
don't know how the "Dialer One" app does it :-/

Original comment by joel.bou...@gmail.com on 20 Jun 2012 at 7:48

GoogleCodeExporter commented 9 years ago
Is this still an issue? I've tried it on two devices (Android 4.1 and 4.4), and 
"noe" shows "Noël", as well as "seb" shows "Sébastien" in the list. Perhaps 
this is something that was changed in Android?

Original comment by Dominik....@gmail.com on 6 Apr 2014 at 4:50

GoogleCodeExporter commented 9 years ago
well, I'll close it then.. i guess the behavior changed with the android 
version.

Original comment by f...@ub0r.de on 10 Apr 2014 at 3:05