Try OpenCSV - it will make your life easier.

First, add this package to your gradle dependencies as follows

implementation 'com.opencsv:opencsv:4.6'

Then you can either do

import com.opencsv.CSVReader;
import java.io.IOException;
import java.io.FileReader;


...

try {
    CSVReader reader = new CSVReader(new FileReader("yourfile.csv"));
    String[] nextLine;
    while ((nextLine = reader.readNext()) != null) {
        // nextLine[] is an array of values from the line
        System.out.println(nextLine[0] + nextLine[1] + "etc...");
    }
} catch (IOException e) {

}

or

CSVReader reader = new CSVReader(new FileReader("yourfile.csv"));
List myEntries = reader.readAll();

Edit after comment

try {
    File csvfile = new File(Environment.getExternalStorageDirectory() + "/csvfile.csv");
    CSVReader reader = new CSVReader(new FileReader(csvfile.getAbsolutePath()));
    String[] nextLine;
    while ((nextLine = reader.readNext()) != null) {
        // nextLine[] is an array of values from the line
        System.out.println(nextLine[0] + nextLine[1] + "etc...");
    }
} catch (Exception e) {
    e.printStackTrace();
    Toast.makeText(this, "The specified file was not found", Toast.LENGTH_SHORT).show();
}

If you want to package the .csv file with the application and have it install on the internal storage when the app installs, create an assets folder in your project src/main folder (e.g., c:\myapp\app\src\main\assets\), and put the .csv file in there, then reference it like this in your activity:

String csvfileString = this.getApplicationInfo().dataDir + File.separatorChar + "csvfile.csv"
File csvfile = new File(csvfileString);
Answer from buradd on Stack Overflow
Top answer
1 of 7
49

Try OpenCSV - it will make your life easier.

First, add this package to your gradle dependencies as follows

implementation 'com.opencsv:opencsv:4.6'

Then you can either do

import com.opencsv.CSVReader;
import java.io.IOException;
import java.io.FileReader;


...

try {
    CSVReader reader = new CSVReader(new FileReader("yourfile.csv"));
    String[] nextLine;
    while ((nextLine = reader.readNext()) != null) {
        // nextLine[] is an array of values from the line
        System.out.println(nextLine[0] + nextLine[1] + "etc...");
    }
} catch (IOException e) {

}

or

CSVReader reader = new CSVReader(new FileReader("yourfile.csv"));
List myEntries = reader.readAll();

Edit after comment

try {
    File csvfile = new File(Environment.getExternalStorageDirectory() + "/csvfile.csv");
    CSVReader reader = new CSVReader(new FileReader(csvfile.getAbsolutePath()));
    String[] nextLine;
    while ((nextLine = reader.readNext()) != null) {
        // nextLine[] is an array of values from the line
        System.out.println(nextLine[0] + nextLine[1] + "etc...");
    }
} catch (Exception e) {
    e.printStackTrace();
    Toast.makeText(this, "The specified file was not found", Toast.LENGTH_SHORT).show();
}

If you want to package the .csv file with the application and have it install on the internal storage when the app installs, create an assets folder in your project src/main folder (e.g., c:\myapp\app\src\main\assets\), and put the .csv file in there, then reference it like this in your activity:

String csvfileString = this.getApplicationInfo().dataDir + File.separatorChar + "csvfile.csv"
File csvfile = new File(csvfileString);
2 of 7
11

The following snippet reads a CSV file from the raw resources folder (which will be packed into your .apk file upon compilation).

Android by default does not create the raw folder. Create a raw folder under res/raw in your project and copy your CSV File into it. Keep the name of the CSV file lower case and convert it into text format when asked. My CSV file name is welldata.csv.

In the snippet, WellData is the model class (with constructor, getter and setter) and wellDataList is the ArrayList to store the data.

private void readData() {
    InputStream is = getResources().openRawResource(R.raw.welldata);
    BufferedReader reader = new BufferedReader(
            new InputStreamReader(is, Charset.forName("UTF-8")));
    String line = "";

    try {
        while ((line = reader.readLine()) != null) {
           // Split the line into different tokens (using the comma as a separator).
            String[] tokens = line.split(",");

            // Read the data and store it in the WellData POJO.
            WellData wellData = new WellData();
            wellData.setOwner(tokens[0]);
            wellData.setApi(tokens[1]);
            wellData.setLongitude(tokens[2]);
            wellData.setLatitude(tokens[3]);
            wellData.setProperty(tokens[4]);
            wellData.setWellName(tokens[5]);
            wellDataList.add(wellData);

            Log.d("MainActivity" ,"Just Created " + wellData);
        }
    } catch (IOException e1) {
        Log.e("MainActivity", "Error" + line, e1);
        e1.printStackTrace();
    }
}
🌐
Javapapers
javapapers.com › android › android-read-csv-file
Android Read CSV File - Javapapers
So how to load the CSV file from “raw” folder and use the above utility to read it? ... CSVFile is the above utility Java class (no external API used). InputStream inputStream = getResources().openRawResource(R.raw.stats); CSVFile csvFile = new CSVFile(inputStream); List ... Now lets look at this example Android application where we have used a CSV file to load data.
Discussions

applications - How to open .csv file on Android? - Android Enthusiasts Stack Exchange
There are file explorer style apps that will open it. Or you could download Csv Viewer app from Play Store. Blurb from it. CSV File Viewer For Android | CSV Reader - view small and large-sized CSV files. More on android.stackexchange.com
🌐 android.stackexchange.com
How to read csv file in android? - Stack Overflow
Possible Duplicate: Get and Parse CSV file in android I would like to store a csv file in android app itself & it should be called for read & later print the values according to the More on stackoverflow.com
🌐 stackoverflow.com
How do I read a csv file that is on the downloads directory of a mobile device, for an Android application - Stack Overflow
I can find many source code examples for reading a csv file, especially when located in the res\raw directory, but I could find no example of how to have an Android app issue a dialog to read the Downloads directory and select a csv file stored in it. More on stackoverflow.com
🌐 stackoverflow.com
April 10, 2017
Import csv data on android (or the web)
u/derFalscheMichel - Your post was submitted successfully. Once your problem is solved, reply to the answer(s) saying Solution Verified to close the thread. Follow the submission rules -- particularly 1 and 2. To fix the body, click edit. To fix your title, delete and re-post. Include your Excel version and all other relevant information Failing to follow these steps may result in your post being removed without warning. I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns. More on reddit.com
🌐 r/excel
4
2
July 4, 2024
🌐
GitHub
github.com › Ibrahim-Mushtaha › Read-CSV-Resource-File-App
GitHub - Ibrahim-Mushtaha/Read-CSV-Resource-File-App: Simple android app to read CSV files.
This is a simple App will help you to read the data from csv you can download the csv file from here using this app.
Author   Ibrahim-Mushtaha
🌐
Example Code
example-code.com › android › csv_read.asp
Android™ Read CSV File
Chilkat • HOME • Android™ • AutoIt • C • C# • C++ • Chilkat2-Python • CkPython • Classic ASP • DataFlex • Delphi DLL • Go • Java • Node.js • Objective-C • PHP Extension • Perl • PowerBuilder • PowerShell • PureBasic • Ruby • SQL Server • Swift • Tcl • Unicode C • ...
🌐
Google Play
play.google.com › store › apps › details
CSV File Viewer - Apps on Google Play
April 26, 2024 - Security: CSV File Opener stores all your csv files and data locally on your device. This ensures privacy and security. CSV File Viewer is the ultimate solution for all your CSV file viewing needs.
Rating: 3.9 ​ - ​ 9.47K votes
🌐
The App Guruz
theappguruz.com › blog › parse-csv-file-in-android-example-sample-code
How to Parse CSV file in Android with sample
... String next[] = {}; List<string[]> list = new ArrayList<string[]>(); try { CSVReader reader = new CSVReader(new InputStreamReader(getAssets().open("test.csv")));//Specify asset file name //in open(); for(;;) { next = reader.readNext(); if(next != null) { list.add(next); } else { break; ...
Find elsewhere
🌐
dotTech
dottech.org › home › android › how to open and read csv files in android [tip]
How to open and read CSV files in Android [Tip] | dotTechdotTech
March 6, 2015 - If you happen to have a CSV file stored on your Android phone or tablet, you can view it by following this short guide. Open the Play Store app from your Android device. Search for the “CSV Viewer” app and then install it on your tablet or phone.
🌐
Aptoide
csv-file-viewer.en.aptoide.com › homepage › android apps › productivity › csv file viewer
CSV File Viewer - APK Download for Android | Aptoide
May 16, 2026 - Download CSV File Viewer 13 APK for Android right now. No extra costs. User ratings for CSV File Viewer: 0 ★
🌐
Softonic
csv-file-viewer.en.softonic.com › home › android › productivity › csv file viewer
CSV File Viewer for Android - Download
May 29, 2026 - CSV File Viewer for Android, free and safe download. CSV File Viewer latest version: A free program for Android, by The AppGuru.. CSV File Viewer is a
Rating: 9.8/10 ​ - ​ 1 votes
🌐
en.proft.me
en.proft.me › 2017 › 07 › 6 › how-read-csv-file-android
How to read from CSV file in Android | en.proft.me
public class MainActivity extends ... setContentView(R.layout.activity_main); List<String[]> rows = new ArrayList<>(); CSVReader csvReader = new CSVReader(RatingActivity.this, "movies.csv"); try { rows = csvReader.readCSV(); ...
🌐
Google Play
play.google.com › store › apps › details
CSV Reader - CSV Viewer - Apps on Google Play
May 19, 2026 - CSV Reader is a versatile app designed to make opening and managing CSV files effortless on your Android device. With its intuitive interface and essential controls, you can quickly access and view your CSV files without the need for an internet ...
Rating: 4.2 ​ - ​ 1.85K votes
🌐
APKPure
apkpure.com › home › apps › productivity › csv file viewer
CSV File Viewer APK for Android Download - APKPure
May 15, 2026 - CSV File Viewer 13 APK download for Android. CSV File Viewer is a file viewer app that lets you open and read CSV files on Android.
🌐
Uptodown
com-csvview-app.en.uptodown.com › android › tools › file manager › csv file viewer
CSV File Viewer for Android - Download the APK from Uptodown
August 18, 2025 - Download the APK of CSV File Viewer for Android for free. CSV File Viewer – Fast, Simple And Free CSV Reader App. In the world of data, CSV (Comma...
🌐
Cafe Bazaar
cafebazaar.ir › csv file viewer
Download CSV File Viewer App for Android | Bazaar
March 19, 2025 - Security: CSV File Opener stores all your csv files and data locally on your device. This ensures privacy and security. CSV File Viewer is the ultimate solution for all your CSV file viewing needs.
Rating: 2.7 ​ - ​ 11 votes
🌐
Stack Overflow
stackoverflow.com › questions › 30487889 › how-do-i-read-a-csv-file-that-is-on-the-downloads-directory-of-a-mobile-device
How do I read a csv file that is on the downloads directory of a mobile device, for an Android application - Stack Overflow
April 10, 2017 - "issue a dialog to read the Downloads directory and select a csv file stored in it." I don't understand what that means. Do you mean read the contents of the downloads directory, present them to the user as a list, and let them select one? ... I want to be able to issue a dialog that will allow for selecting a file from the downloads directory on a mobile device. ... Why a dialog? That doesn't sound like a very good tool for the job. ... I found hints to the solution in an article entitled Android Import excel into Sqlite Database Part 1
🌐
Gadgets To Use
gadgetstouse.com › home › 3 ways to open and edit csv files on android phone
3 Ways to Open and Edit CSV Files on Android Phone - Gadgets To Use
October 4, 2022 - Follow these easy steps to read and edit your CSV file using this app from your phone. Open Google Play Store, search for the CSV Viewer app and install it. Provide the necessary access permissions required for the app.
🌐
Uptodown
csv-file-viewer-file-reader-app.en.uptodown.com › android › productivity › personal › csv viewer
CSV Viewer for Android - Download the APK from Uptodown
3 weeks ago - Download the APK of CSV Viewer for Android for free. Convert CSV to PDF on Android. Are you searching for an efficient tool to handle CSV files on your...