B4A Class ExternalStorage - Access SD cards and USB sticks - Erel    
Nov 11, 2020   
(62 reactions)   
tags: File, Access SD and USB, externsl sd, storagehttps://www.b4x.com/basic4android/images/SS-2018-03-05_11.16.42.png
Before we start:
External storage means a real sd card or a connected mass storage USB device.
This class can also be used to access the secondary storage (File.DirRootExternal). This becomes relevant with newer versions of Android that restrict direct access.
It has nothing to do with runtime permissions.
You can use RuntimePermissions.GetAllSafeDirsExternal to directly access a specific folder on the SD card.
You can use...
B4A Question how to ext. SD Card write on Android 4.4. - monki    
Jun 19, 2014hi erel,
in Android 4.4 it is only possible to write to the external SD card in a directory whose name Andoid / data / "apk name".
But as it is created?
monki....
link: You can use this code on Android 4.4 to find the paths of the app specific external storage paths:
Sub Activity_Create(FirstTime As Boolean)
Dim paths() As Object = GetContext.RunMethod("getE...
B4R Tutorial SD cards - Erel    
Apr 19, 2016   
(9 reactions)The rSD library allows reading and writing to SD cards. The Ethernet shield as well as other shields include a SD slot.
The steps required to work with files:
1. Initialize a SD object. You need to... the data file. The data file is then manually copied to the sd card.
This is the important code:
For...
link: other pin just ensure you make corrected pin wiring with your board and SD Card module based on link...
link: How setup?
SD.Initialize(MY_SCLK, MY_MISO, MY_MOSI, MY_CS);...
B4R Code Snippet SD-card: save log into a limited (looped) log file - peacemaker    
Aug 25, 2024.
Actual Arduino's SD-card class can open file only for READ, WRITE or APPEND. No TRUNCATE is possible... As Byte, YEAR As Byte
End Sub
Sub Start_SD(tag As Byte)
If tag = 0 Then
Log("Start SD...")
Else
Log("Try to re-start SD...")
End If
Dim res As Byte = RunNative("setup_sd", Null)
If res = 0 Then
Log("SD card - setup error..., line)
End Sub
#if C
#include "FS.h"
#include "SD.h"
#include "SPI.h"...
B4A Question External Sd card access - GiovanniPolese    
Aug 11, 2023Hi to All
I have now met the problem to manage an External sd card. Reading the posts here I found... display the above mentioned message .. but .. no Sd card access anyway.
At the end, what I need...
link: Hi to all.
After all this coloured posts, here is the solution, (I guess):
it is necessary to put th...
link: "Should not work" not "should not working" .. maybe someone looks at my english ...
link: Anyway, if my system were missing something, as the debug says:
java.lang.ClassNotFoundException: a...
B4A Question [Code snippet] Transfer files from Android to ESP8266-ESP32 micro SD Card in plain TCP (no FTP) - max123    
Nov 17, 2022   
(4 reactions) Android to ESP8266-ESP32 micro sd card (over network).
Because I don't wanted to use an FTP library... on ESP SD Card, then B4A send the info string containing the file name, size and other stuff...
link: transfer files to ESP and it save to uSD card. I tried it with relatively big files, 30-40 MB and...
link:
Because I just need to download a file, no need a full FTP library. Actually my app use 78% of ESP3...
B4i Library SD: ScratchCard - Star-Dust    
Jan 14, 2025   
(5 reactions)   
tags: myapp.
iSD_Scratchcard
Author: Star-Dust
Version: 0.03
PanelScratchCard
Events:
Click
LongClick
Touch (Action...I created a new view / panel that simulates the effect of scratch cards.
Create a panel from code...
link: .
SD_Scratchcard
Author: Star-Dust
Version: 0.03
PanelScratchCard
Events:
Click
LongClick
Touch (Action As Int...
link: Update rel. 0.03 - Added FillingPercentage method...
link: Update rel. 0.02
Added clear method...
B4A Question [Solution found] Does SD Card exist? - Roger Daley    
Sep 14, 2021 current method to determine if a physical SD Card is fitted to the device?
IE:
If File.Exists...
link:
"You" should try passing it something like this:
final File file = new File("foo&qu...
link: "You" should try passing it something like this:
final File file = new File("foo&quo...
link:
119081
Perhaps the problem is that we passed Null as the Path parameter.
I can't but I would ...
B4A Question File.DirRootExternal not the path of the sd-card? - Alexander Stolte    
Jan 19, 2017Hello,
In the theory you get with DirRootExternal the path of an external storage media or sd-card. Is that right?
Because with me comes a completely different path out and try to save something under the path it saves it always on the device not on the SD.
I add this permission to the manifest editor:
AddPermission("android.permission.WRITE_EXTERNAL_STORAGE")
And writeable is true.
Or is there another way to save the sd card? All tutorials I have read have been based...
B4R Question SD card: create a directory tree - peacemaker    
Aug 23, 2024HI, All
I read that path should be 8.3 format for FAT32.
But ... how to mkdir("/year/month/day...
link: Ha !
RunNative("create_dir", "/00".GetBytes)
RunNative("create_dir",...
link: ", "/t00/00/000000000002".GetBytes))
No one created.
createDir(SD, "/t1/t2...
link:
folder=/00/0000/000000
Such path cannot be created, tested...
Page: 1  
2  
3  
4  
5  
6