将我的 android 应用程序依赖于网络中的 json 文件

Rely my android app to json file in the web

事情是这样的,我想将一些新闻检索到我的 android 应用程序中,我可以在 json 文件中找到它。
我正在考虑创建一些博客(也许是 wordpress)并通过添加文章,它会自动将其添加到 json 文件中。
这样,将我的应用程序依赖到json文件后,我需要做的就是在博客中添加文章。

  1. 应用启动后从服务器加载 JSON。
  2. 将其解析为应用内容。
  3. 添加使用 SwipeRefreshLayout 进行手动刷新的可能性。 https://developer.android.com/reference/android/support/v4/widget/SwipeRefreshLayout.html
  4. 如果您需要 JSON 自动更新您的应用程序,在新 post 添加到博客后,您应该使用 Google 云消息传递。 https://developers.google.com/cloud-messaging/?hl=ru