How to develop an app that has add-ons?

前端 未结 2 1115
我在风中等你
我在风中等你 2020-12-28 10:20

Is there an outline or primer of how you would develop an app that has \"add-ons\"?

E.g., how to develop some sort of framework for adding \"themes\" to an app?

2条回答
  •  死守一世寂寞
    2020-12-28 10:50

    I believe the cleanest design in this case would be to have a single app in Market, and have the themes available on your own server. Then the user could download the app just once from Market, and then apply the themes available on your server.

    However, if you prefer to have them as separate Market entries, you can set the android:sharedUserId flag on the manifest to make all of them run under the same user ID, which will allow you to share files (bitmaps, etc) between them. Remember they all have to be signed with the same certificate.

    What may be confusing to the user is that they will be able to download an add-on before downloading the main app... in which case you'd have to display an error message asking them to download the main app.

提交回复
热议问题