libriaries on Android

Posted by Will on Stack Overflow See other posts from Stack Overflow or by Will
Published on 2010-04-07T09:55:18Z Indexed on 2010/04/07 14:33 UTC
Read the original article Hit count: 270

Filed under:
|
|

In native development, you can produce libraries - .so, .dll etc - that other libraries and programs can share.

In Java, you can put your code in a JAR in the classpath and other programs and libraries can use it.

So how can you do modular programs in Android? I get the impression from the documentation that each APK is a self-contained island. Can different APKs share code?

And how does installation work when you have these external dependencies? Can you specify that you rely on library that is not in your APK and get it installed too?

If you can't have 'dynamic linking', can you have 'static linking' by developing your shared code and somehow putting the equiv of a JAR into each APK that requires it?

© Stack Overflow or respective owner

Related posts about android

Related posts about java