How to read a CSV file using Android?

Asked

Viewed 3,746 times

1

I’m a beginner on Android and was wondering how to read a TXT file to my application.

That question helped me a lot:

https://stackoverflow.com/questions/8499351/how-to-read-csv-file-in-android

But in my case, the user will put a CSV file inside the sdcard or the tablet’s mémoria , would like to know how I make the user choose where the file is inside the memory to be able to import to the application instead of making my application look for a fixed place inside the tablet.

  • 4

    Actually your question then is: Como selecionar um arquivo que está dentro da memória do dispositivo? ?

1 answer

1

I believe you’re looking to create a file explorer run? if this is a look at these 2 articles use to see how to show only txt

http://dev-droid.blogspot.com.br/2011/07/recuperando-e-lendo-arquivos-de-um.html

and to create the explorer use this:

http://custom-android-dn.blogspot.com.br/2013/01/create-simple-file-explore-in-android.html

if there is an error or something like that try to remove the image component and its functions in the project that is right, already implemented using these examples

Browser other questions tagged

You are not signed in. Login or sign up in order to post.