user1090729
user1090729

Reputation: 1563

Is there a way I can use a method from api 19 in earlier versions?

I've built an application that depends on the remove() method of the JSONArray class to in some cases remove the first entry. Even if hacky, this works fine, however it has now been deemed necessary for the application to also work on earlier android versions and this method was apparently introduced in api 19.

Is there a way to use this method in earlier versions? Otherwise, could you suggest an alternate way of removing the first object from the array?

Upvotes: 0

Views: 47

Answers (1)

suitianshi
suitianshi

Reputation: 3340

If it's available in support library then go ahead and use it. Otherwise , you will have to find other ways (use third-party library or copy the source code and implement your own).

Upvotes: 1

Related Questions