bowser
bowser

Reputation: 73

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

Upvotes: 0

Views: 98

Answers (1)

Ken White
Ken White

Reputation: 125728

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.

Upvotes: 1

Related Questions