1

I used to include an Android library on Eclipse, say lib-1.jar, to my app that supports all devices from API 8.

Now the news: the latest version of this library supports only Android from API 9 (lib-2.jar). I don't want to drop the support for API 8, and at the same time I need this new version. Is it possible to tell Android to load lib-1 or lib-2 depending of the current API version?

0

1 Answer 1

0

jars are not usually loaded at runtime. You either need to have these libs complete separate from each other and in different packages and then do conditional use in your code, or just build two different APKs, using different jars while building

Sign up to request clarification or add additional context in comments.

2 Comments

I thought so... I just needed a confirmation. Thanks
jar files are usually not loaded at run-time but they can be loaded!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.