android include API 9 functionality in earlier API versions
Would like to keep the API level required for my application lower than the latest so it can be used on more devices, however I would like to incorporate some of the new concurrent dat开发者_开发技巧a structures that are in API 9. Of course, i could just write my own, but rather than re-invent the wheel, how to I pull in code / class / jar that has a sorting / sortable concurrent list / queue / set data structure. I wanted to use ConcurrentSkipListSet but i really just want to be able to sort a concurrent list of objects using my custom comparator.
You can't. If the new API functionality doesn't exist in earlier versions of the API, they don't exist. If you use them, you inject a dependency on the newer API.
精彩评论