如何读取xlsx档案在Android应用程序? [英] How to read xlsx file in an android application?

查看:288
本文介绍了如何读取xlsx档案在Android应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有计算器上的许多同样的问题,但似乎我看不到任何可能的解决方案,用于读取的xlsx的内容。

I know there's many same questions on stackoverflow, but it seems that I can't see any possible solution for reading the content of xlsx.

我有尝试:

我试图把整个的Apache POI库,Android应用程序,并尝试读取XLSX文件。
然而,问题是,在Apache POI库太重投入Android应用程序。一条错误消息表明,Dalvik虚拟机不能超过65536方法执行的应用程序。

I have try to put the whole Apache POI library to an android application and try to read the xlsx file. However, the problem is that the Apache POI library is too heavy to put into an android application. An error message shows that the Dalvik VM cannot execute an app with more than 65536 methods.

这有什么办法可以读取XLSX文件的内容(只可能是内容,其他格式,如细胞的颜色/宽度并不重要)在一个Android应用程序?
或者有没有人试图裁减了Apache POI库,这样Dalvik虚拟机可以执行吗?
当我看到了QuickOffice从谷歌播放也使用Apache POI,但我真的不知道如何把POI成一个应用程序。
非常感谢。

It there any way to read the content of the xlsx file (could be the content only, other formatting such as color/width of the cell is not important) in an android app? Or it there any one tried to trim down the apache poi library so that Dalvik VM can execute it? As I saw that QuickOffice from Google Play are also using Apache POI, but I really don't know how to put the POI into an app. Thanks so much.

推荐答案

试用谷歌文件的在线浏览,如果ü应用程序接入互联网...

Try Google Doc online to browse if u app connected with internet ...

这篇关于如何读取xlsx档案在Android应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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