开发者

same package name in different apk

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜