Android Question List.SortType converted to Java ?

vdudukov

Member
Licensed User
Longtime User
Hello everybody.

I am trying to put my code from B4A into Android Studio.
I am stuck with Type and comparator. In B4A i do it very easy :).
B4X:
       Dim field As Person
        field.date = date
        field.description = description
        field.amount = amount
        list1.Add(field)

         list1.SortType("date", False)
        For i = 0 To list1.Size - 1
        Dim field2 As Person
        field2 = list1.Get(i)
Can somebody help ?. Thank you .
 

moster67

Expert
Licensed User
Longtime User
If you check the source-folder in your project, you may see the related equivalent code in java
 
Upvote 0

vdudukov

Member
Licensed User
Longtime User
Dear Erel,

Yes of course, i know that.
I am working with B4A since 2013, and it is my no.1 programming tool. But now i must compile few line of code into java. So i was just wondering if someone can help.

Thanks again, so please don' t hold that against me.
 
Upvote 0
Top