Ok. So like I said, I can sort the data (Bookmarks list) I get using the Browser contentProvider but when I do, it only sorts the data shown to the user on my App. Can I overwrite the "sort by" clause the default Android Browser uses? (btw, the default is "null" which is according to most visited Bookmark + ASC).
If I extend the contentProvider class (interface?) and overwrite the "cursor query" method - will it become the default one and actually sort the bookmarks according to what I choose? On Sep 27, 2:34 pm, Kostya Vasilyev <[email protected]> wrote: > There is no such thing as database - specific sort order in SQL. There can > be a specific "sort by" clause, it else the order is undefined, strictly > speaking. I suspect the browser actually specifies its own sort order, or > the content provider has a default. > > -- > Kostya Vasilyev --http://kmansoft.wordpress.com > > 27.09.2010 14:07 пользователь "Liorry" <[email protected]> написал: > > Hi, > > Is it possible to actually re-sort an Android SQL DB? > for example, I want to resort the Bookmarks DB. > > I can query the data and sort it with "Browser.BookmarkColumns.TITLE + > " ASC" in the query but this will only sort the list shown to the user > and will not sort the DB itself. > Therefore, if a user uses my app to sort the Bookmarks by Title(ASC) > and then goes to the Android Browser Bookmarks - the order will remain > default (other than the one selected on my app). > > Can anyone PLEASE point me to the right direction with this issue? > Been Googling for ages, almost flooded Stackoverflow and other Android > forums :) > > Appreciate any help! > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<android-developers%2Bunsubs > [email protected]> > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

