2

I want to display an excel sheet in my android application. I have googled and yet cannot find a starting tip to render an excel file using android components. If anybody knows any thing please give me some valuable hint.

skynet
  • 9,898
  • 5
  • 43
  • 52
Pramod J George
  • 1,723
  • 12
  • 24

3 Answers3

1

You can use Apache POI or Java Excel API.

KV Prajapati
  • 93,659
  • 19
  • 148
  • 186
  • I tried both Apache Poi and Java Excel Api. Both can be used to read from and write to an excel file. ok. But I want to display the data from excel in a grid type view using table layout. can you help me in that – Pramod J George Nov 09 '11 at 11:05
0

In android jxl.jar is use for create excel sheet. and it is available at here

and you can create excel sheet by using following code.
File root = Environment.getExternalStorageDirectory();
File gpxfile = new File(root, sFileName);
FileWriter writer = new FileWriter(gpxfile);
writer.append("NAME");

Hardik Joshi
  • 9,477
  • 12
  • 61
  • 113
-1

Try GridView.

Code Poet
  • 11,227
  • 19
  • 64
  • 97