开发者

same package name in different apk

开发者 https://www.devze.com 2023-02-03 16:52 出处:网络
Is it possible to define different c开发者_JS百科lasses of the same package in different apk ? By example having

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

精彩评论

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