Android Question How to download a file to my laptop

joaquinortiz

Active Member
Licensed User
Longtime User
I create an excel file using Excel 1.00 library.

Finally, I created in the folder /storage/emulated/0/android/data/b4a.example/files

If i navigate into folders in the device, I can open it.

How I can download this file into my laptop?

I connect several devices (smartphones and Zebra TC20) through USB cable and it doesn't appears in File Explorer. How I can do it?

Thanks in advance!
 

JohnC

Expert
Licensed User
Longtime User
Try saving the excel file in the dir/path returned by this code:

B4X:
    Dim rp As RuntimePermissions
    Dim SafeExternalDir As String

    SafeExternalDir = rp.GetSafeDirDefaultExternal

And then see if your laptop can see the file.
 
Upvote 0

joaquinortiz

Active Member
Licensed User
Longtime User

it's works!!!...thanks.!!
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…