Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android

Where to store excel sheets in an android project?

Hello,

I am working on an android app where I would like to retrieve data from an excel sheet. I found some libraries from extracting data from excel in Java such as (http://www.andykhan.com/jexcelapi/tutorial.html#reading)

Also, found some documentation to get into the directory (http://developer.android.com/reference/android/content/Context.html#getExternalFilesDir%28java.lang.String%29)

but I cannot find where should I store my Excel Sheet so that whenever anyone installs the app it gets saved in their directory and then the app can secretly extract some data and use it for further app logic.

Thanks

1 Answer

Hey Amin Memon,

You should find this piece of documentation very helpful.

http://developer.android.com/guide/topics/resources/providing-resources.html

You will see that arbitrary files should go into the raw/. Reading the documentation will also show you how to open the file. Also, check out this question from Stack Overflow.