I don't see anything about this change in the API differences report
at http://developer.android.com/sdk/api_diff/8/changes.html.  However
when my Nexus One started running Android 2.2, the list of files
created by the following code are now in reverse alphabetical order
rather than alphabetical order (as they were with Android 2.1 and
earlier, AFAIK):

   File fileDir = new File(strSomePathToSDCardDirectory);
   String fn[] = fileDir.list();

The line "Arrays.sort(fn);" revives the alphabetical order of the
list, but sorts are computationally expensive and AFAIK the explicit
call to Arrays.sort() was unnecessary prior to Android 2.2.

Was this change intentional?

- greg

P.S., In addition to seeing this order change on the Nexus One, it can
be confirmed on the emulator running level 7 and level 8 AVDs.

-- 
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

Reply via email to