开发者

Storing data in Excel file from an android application

My application generates data and i want to share this data, like transfer to my PC and work or send it to others as excel sheet.

Can we store data from an android application to a Excel sheet programatically开发者_JS百科 ? Then how do we open and Excel file and write to it ?


In theory, libraries like Apache POI and JExcel should work on Adroid but there are some issues with them at this point.

Only option is to generate XL that can be read by Excel. Steps are:

  1. Create an Excel file on PC with formatting that you need
  2. Save that file as XML, Excel will insert Tags for formatting/ formulas
  3. Write java code to generate similar XML file on Android
  4. On Android, save this XML file on SD Card
  5. Transfer the XML to PC and open that in Excel


Take a look at this tutorial, How to create file in SD-Card.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜