I am currently doing a project that involves showing a list of locations nearby based on my current location.
I just started Android Programming not long ago, so I am still at my learning while coding phase.
I searched all over trying to get some clues on how to proceed. I am still stuck after reading and trying out.
My working code currently consists of
- CursorLoader
- A custom ResourceCursorAdapter that help populates my entries on the ListView
Questions
What is the "correct" way to filter entries for my ListView? I saw posts on Filter/Filterable interface, but it doesn't seems to work for my current setup? Do I perform filtering inside my Custom CursorAdapter?
How should I refresh my ListView after I perform filtering? Do I call getLoaderManager().restartLoader(0, null, this) or adapter.notifyDataSetChanged() ?
Thanks in advance.