How to do live updates on an android app

 ̄綄美尐妖づ 提交于 2021-02-11 13:19:43

问题


I am new at programming and developing apps so go easy on me please. Basically I want to be able to update some text every so often without having to update the entire app. I'm not sure how to go about this. Any feed back would be nice

Edit: I should have mentioned what I'm doing. I making an app for my pool, and a feature I want to add will allow people to see how many people are in the pool before they deiced to come. So I would need to constantly change my text in a certain part of my app.


回答1:


Are you saying that you want some text in the app (such as a list of items, or a paragraph somewhere in your app) that you can update without releasing a new APK?

If so, then you will need to implement some sort of client-server model in which the app checks your sever for the correct text to display.

You cannot simply update text that is coded into the app (or set in strings.xml), as all of that data is compiled into the APK.




回答2:


You need to implement a server (a couple of codes in php would suffice) where to store the lines of text you want to display in your application.

The application (which is the client in this scenario) must then call the server and ask it the line to display.

You should google for "android client server". Don't worry it's a quite easy issue.



来源:https://stackoverflow.com/questions/11210437/how-to-do-live-updates-on-an-android-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!