在Excel工作表的Andr​​oid应用程序的数据反映 [英] Reflect Data in the Excel sheet to the android app

查看:140
本文介绍了在Excel工作表的Andr​​oid应用程序的数据反映的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新android开发。我有两个问题:


  1. 我有一个Excel工作表,作为我的数据的数据库。我想在我的Andr​​oid应用程序中显示的数据。我该怎么办呢?我一定要使用SQLite数据库?如果是,那么如何?


  2. 如果有在Excel工作表在未来的任何变化,那么如何将这些更改应用程序中的反映?


在此先感谢所有帮助。


解决方案

  1. 要读取Excel文件在Android中,你应该使用一些出色的库如JExcelApi的,Apache的POI。
    看完后,你可以把它们写进SQLite的dababase减少Excel的解析时间。


  2. 在解析excel文件,保存文件的最后修改时间,以文本文件或preferences,每当你的应用程序运行,comare他们,如果最后修改时间是不同的更新。


I am new to android development. I have two questions:

  1. I have an Excel sheet as a database for my data. I want to display that data in my android application. How can I do it? Do I have to use SQLite database? If yes, then how?

  2. If there are any changes in the Excel sheet in the future, then how would be these changes be reflected in the application?

Thanks in advance for all the help.

解决方案

  1. To read excel file in android, you should use some excel library such as JExcelApi, Apache POI. after reading it, you can write them into SQLite dababase to reduce excel parsing time.

  2. when you parse excel file, you save the file's last modified time to text file or preferences and whenever your app runs, comare them and update it if last modified time is different.

这篇关于在Excel工作表的Andr​​oid应用程序的数据反映的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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