On Feb 11, 4:54 am, sancane <[email protected]> wrote: > I oberved that: > public Field[] getFields() > Returns an array containing Field objects describing all fields which > are defined. That's array is sorted as attributes are declared in the > main Class in sun jdk. For example, next Class is defined as:
The javadoc for Class.getFields says, in part: "Returns an array containing Field objects reflecting all the accessible public fields of the class or interface represented by this Class object. The elements in the array returned are not sorted and are not in any particular order." > It is critic for my application to get the Fields in the same order in > which they have been declared in the main class. I don't know if it is > possible in Android. This is implementation-specific behavior and not something you can rely on. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

