从服务器更新的strings.xml - Android SDK中 [英] Update Strings.xml from server - Android SDK

查看:288
本文介绍了从服务器更新的strings.xml - Android SDK中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Android的SDK(Eclipse中),其中有文本视图和按钮制作的应用程序。文本视图和标签按钮中的文本来自的strings.xml
我想从服务器更新的strings.xml,即如果我在我的服务器上创建新的strings.xml /数据我的应用程序应该认识到的变化,在后台下载这个新的strings.xml /数据覆盖现有之一。
我知道,服务器推送可以通过C2DM可以实现,但是我想知道的是,我在哪里把code在我的Java或XML文件来告诉我的应用程序,当曾经有一个从可用的更新下载它该服务器地址,并更新当前的strings.xml文件

I'm making an app in Android SDK(Eclipse) which has Text Views and Buttons. The text inside Text Views and Labels for Buttons come from Strings.xml I want to update Strings.xml from server, that is if I create new Strings.xml/Data on my Server my App should recognize the changes and download this new Strings.xml/Data in background to overwrite the existing one. I know that the Server push can be achieved via C2DM, but the part I want to know is that where do I put code in my Java or XML files to tell my App that when ever there is an update available download it from this server address and update the current Strings.xml file

推荐答案

我恐怕是不可能改变你的APK的资源。另一种可能性可能是使用谷歌标签管理器移动。您将无法添加新标签,但你可以从他们的Web界面更改。每12h(默认)应用程序检查是否有一个新的容器可用,如果是这样,它会下载新的容器。你也可以告诉应用程序寻找一个新的容器,例如在应用程序启动起来。请查看视频了解详情

I'm afraid it's not possible to change the resources of your APK. Another possibility might be to use Google Tag Manager for Mobile. You won't be able to add new labels, but you'll be able to change them from a web interface. Every 12h (default) the app checks if there's a new container available and if so, it will download the new container. You can also tell the app to look for a new container, for example on start up of the app. Check out this video for more information

这篇关于从服务器更新的strings.xml - Android SDK中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆