android 网络服务技术 "no internet connection"
android techic about web-services when "no internet connection"
我制作了一个带有网络服务的 android 应用程序,现在我能够做到这一点,尽管仍然很简单。我的问题是,当有 "no internet connection" 时,我希望应用程序仍然可以打开,并使用它从网络服务获得的最后数据。
my Question is, how do i do that? is it using sqlite, so after fetching the data from web-services, i have to save it to sqlite? then the data in Listview should be from sqlite not directly from web-services?
是不是用了sqlite,所以从web-services中获取数据后,我必须把它保存到sqlite中?
是
那么 Listview 中的数据应该来自 sqlite 而不是直接来自网络服务?
是
如果你能使用图书馆就更容易了。喜欢改造访问 web 服务。并使用 ORM 将数据保存到 sqlite 更容易。但你必须
了解模式。如果你理解它,wuuusssshh 在开发时会更快。
玩得开心!
我制作了一个带有网络服务的 android 应用程序,现在我能够做到这一点,尽管仍然很简单。我的问题是,当有 "no internet connection" 时,我希望应用程序仍然可以打开,并使用它从网络服务获得的最后数据。
my Question is, how do i do that? is it using sqlite, so after fetching the data from web-services, i have to save it to sqlite? then the data in Listview should be from sqlite not directly from web-services?
是不是用了sqlite,所以从web-services中获取数据后,我必须把它保存到sqlite中?
是
那么 Listview 中的数据应该来自 sqlite 而不是直接来自网络服务?
是
如果你能使用图书馆就更容易了。喜欢改造访问 web 服务。并使用 ORM 将数据保存到 sqlite 更容易。但你必须 了解模式。如果你理解它,wuuusssshh 在开发时会更快。
玩得开心!