B4X:
Dim sSourceFile As String=SQLLite.oDB.sPrivateDatabaseName
Dim sDestinationFile As String=SQLLite.oDB.sPrivateDatabaseName
Dim sDirSource As String=File.DirRootExternal
Dim sDirTarget As String=File.DirDefaultExternal
Try
File.Copy(sDirSource, sSourceFile, sDirTarget, sDestinationFile)
ToastMessageShow(sDirTarget & sDestinationFile,True)
Catch
oError.ShowLastException("Error : BackupDB_Click")
EndTry
The code is copying my file to the internal SDCard.
I inserted the following directive in my manifest
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>