英文:
Android Loading Large JSON file every time Java
问题
我正在尝试使用开放天气API制作一个安卓天气应用程序。
但有一件事让我困扰,那就是如何获取位置列表并允许用户添加新位置。
我从开放天气获得了一个JSON文件,但是这个文件相当大。如果我每次用户启动应用时都读取该文件,至少需要5秒钟。
那么,是否有更好的方法来解决这个问题?
英文:
I am trying to make a android weather app with open weather API.
But one thing bugs me is how to get the location list and allow the user to add a new location
I found a json file from open weather, but the file is fairly large. If I read the file every time users start the app, it would take at least 5 seconds.
So, is there a better approach to solve this issue?
专注分享java语言的经验与见解,让所有开发者获益!
评论