简体   繁体   中英

Optional Installed Package Android

I was wondering, how do the makers of apps (like Duolingo or Google Translate) add the option to download and install packages/ files, to the app that modify the content or add new content? Are the files hosted on their site or a cloud service, and do they have to get the packages/files verified or something before they add them to the app?

There are many ways of doing this, it just depends on what you are trying to accomplish.

For example if you want to add in a large amount of data and / or elements, you can use an APK Expansion File to do so.

Say on the other hand you just want to update things like images, section titles, etc, you can just update things via API calls and the respective responses using JSON responses from your server.


{
  "title" : "some new title",
  "color" : "#FFFFFF"
}

One other method is that if you want to update things and not utilize a server, you can also use Firebase's Remote Config option to change things dynamically.

It really just depends on your goals and what you want to change.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM