Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is advantage of apklib from jar?

I was following this question but it doesn't answer my question completely.

What is real advantage of apklib from jar?

Possible answers:

  1. It contains resources

But I can easily put resources to jar file as well

  1. It contains already prepared android classes

But if I open apklib I don't see dex or something other related to android. Even more I see plain sources inside.

So what is real purpose to keep/distribute library in apklib format?

like image 330
Eugen Martynov Avatar asked Dec 21 '12 13:12

Eugen Martynov


1 Answers

But I can easily put resources to jar file as well

No, you cannot, at least not in terms of the Android resource system. Being able to create a JAR (or similar package) that contains Android resources is one of the objective of the new build system that Google is working on at the present time.

like image 82
CommonsWare Avatar answered Sep 20 '22 10:09

CommonsWare