Hi Roman,

Here is what I do in more detail:
- Query encrypted data from SQL, this gives me a Cursor
- Create SimpleCursorAdapter with that cursor and give it to ListView
- I have my own ViewBinder that decrypts data as the ListView is
populated.

I'm not sure if I want to reap data from the cursor, pass it over to
the collection, sort it and give it to the ListView for performance
reasons. So I was kind of hoping that it would be possible to sort the
list view items when they are already in the list.

On Aug 27, 4:28 pm, "Roman ( T-Mobile USA)" <roman.baumgaert...@t-
mobile.com> wrote:
> I am assuming that you are able to successfully  query your data. Tosortyour 
> result is independent from using theListView. After sorting
> your query result with for example Collections.sort() you can create a
> ListAdapter instance and calllistView.setAdapter(<your adapter>).
>
> --
> Roman Baumgaertner
> Sr. SW Engineer-OSDC
> ·T· · ·Mobile· stick together
> The views, opinions and statements in this email are those of the
> author solely in their individual capacity, and do not necessarily
> represent those of T-Mobile USA, Inc.
>
> On Aug 27, 3:31 pm, gnugu <rho...@gmail.com> wrote:
>
> > Hi,
> > I cannot get the data from SqLite using ORDER BY because the data is
> > encrypted, so thesortwouldn't work there.
>
> > Is it possible tosorttheitemsin theListView?
>
> > Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to