Why can't I see my file?

peggjones

Active Member
Licensed User
Longtime User
I can't seem to look at the contents of a file on my Nexus.

I run an App with the following lines of code in it.


File.Copy(File.DirAssets, "portfolio-summary.csv", File.DirInternal, "portfolio-summary.csv")

Table = su.LoadCSV(File.Dirinternal, "portfolio-summary.csv", ",")

It runs perfectly OK (and loads the data that is in android/files/portfolio-summary.csv on my PC) but I cannot find portfolio-summary.csv anywhere on my Nexus.

Many thanks in advance to anyone who can help.
 

peggjones

Active Member
Licensed User
Longtime User
Thanks.

I've done that and the result is


/data/data/b4a.ManagePrices/files

I'm still strugling (I have many years of IT experience but none of Android).

If I look at folder data with Astro I cannot see another folder called data in it and come to a dead end.

Clearly I'm doing somethong wrong but I can't for the life of me see what.


Many Thanks
 
Upvote 0

Geezer

Active Member
Licensed User
Longtime User
I'm not sure if it is different on a rooted device, but on a regular, non-rooted device, Internal files are private to the APP, other apps such as Astro will not be able to access them.
 
Upvote 0

peggjones

Active Member
Licensed User
Longtime User
Access Downloaded File

Thanks for all the help. Perhaps someone could give me some advice as to how I can achieve the following.

I want to download a CSV file from a website to my Nexus, process it with an app wriiten in Basic4Android in order to write data from it to an Sqlite database.

How can I do this?

At the moment when I run my app it seems to write data originally downloaded to the CSV file on my PC to the Sqlite database, it seems to be impossible to get it to read data downloaded directly to the Nexus.


Many thanks.
 
Upvote 0

peggjones

Active Member
Licensed User
Longtime User
Thanks everyone. I've got round my original problem. But now I find LOADCSV won't work. It keeps saying "arrayIndexOutofBoundsException". This is on a CSV file that loads perfectly happily in "Simple Spreadsheet" and other apps designed to process CSV files. I assume there is a bug the LOADCSV function.
 
Upvote 0
Top