Is it possible to define different c开发者_JS百科lasses of the same package in different apk ? By example having
package org.company;
public class A { ... }
in an Android project
and
package org.company;
public class B { ... }
in another Android project
Would it be a good thing to do ?
Yes, this is entirely possible.
Each APK runs in its own virtual machine, so there is no problem or overlap.
The only thing that must be uniquely named is the package name defined in the AndroidManifest.xml
file.
No problem at all. But, you have to sign both APK with same key. Otherwise, the latter app wont install.
精彩评论