How to create multiple Android apps from one code base

后端 未结 5 1797
醉梦人生
醉梦人生 2021-02-05 06:40

I have an Android code base which uses APIs with settings to get different data for several apps. All apps use the same code base but with one or two design tweaks. So how do I

5条回答
  •  误落风尘
    2021-02-05 06:50

    The Android documentation recommends another approach if there aren't too many "different APIs" used.

    The idea is to use reflection instead of making direction references to the code. Make sure to use optimized reflection instead of lookups every time.

    References

    • http://developer.android.com/training/multiple-apks/api.html
    • http://developer.android.com/google/play/publishing/multiple-apks.html#ApiLevelOptions

提交回复
热议问题