aspose file tools*
The moose likes Android and the fly likes Getting data from excel File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Getting data from excel File" Watch "Getting data from excel File" New topic
Author

Getting data from excel File

Jerry Gomez
Greenhorn

Joined: Sep 15, 2011
Posts: 5
Hi,

I`m kinda new with android ,but i know java.
With a normal application it`s possible to get data from an excel file.
When i try to put it into an android application it doesn`t work.

Is it even possible on the android?
Or do you have a better suggestion.

Greetings Vermi

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42919
    
  68
The common libraries (POI, jExcel) have dependencies on AWT - which doesn't exist on Android; that's why they can't be used.

It's certainly possible in general, as attested by applications like DocumentsToGo.

If you just need to read the format, you might look into what's involved in stripping out all AWT components from those libraries. It's probably a big job, and you'd possibly lose image support, so it'd depend on what you need and how much work you are prepared to do.
Jerry Gomez
Greenhorn

Joined: Sep 15, 2011
Posts: 5
Hi,

The game that i`m working on has lots of text.
I want the text to be on some kinda file.

I want to read the text somekind of way with the android.

Thanks, Jerry
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42919
    
  68
So the question is no longer about Excel at all? In that case see http://developer.android.com/guide/topics/data/data-storage.html about internal and external storage.

If the file is part of the app itself, see http://developer.android.com/guide/topics/resources/index.html
 
Don't get me started about those stupid light bulbs.
 
subject: Getting data from excel File