Back to project page AppSearchWidget.
The source code is released under:
Apache License
If you think the Android project AppSearchWidget listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.testwidget; /* ww w . jav a 2s.c om*/ import java.util.Comparator; public class AppLaunchTimeComparator implements Comparator<ApplicationListItem> { @Override public int compare(ApplicationListItem lhs, ApplicationListItem rhs) { if (lhs.getLaunchTime() < rhs.getLaunchTime()) { return 1; } else if (rhs.getLaunchTime() < lhs.getLaunchTime()) { return -1; } else { return 0; } } }