Android Question I have a problem with a program connection B4A-Bridge >> File Explorer

alfaiz678

Active Member
Licensed User
Sorry
Most questions

I have a problem with a program connection
B4A-Bridge >> File Explorer

As in the picture 1
This problem appears
As in the picture 2
Translation by English

ARROR OCCURRED DURING an FTP Server. Make Sure That You Have Permission To Access this folder.
 

Attachments

  • 1.jpg
    1.jpg
    64.1 KB · Views: 176
  • 2.jpg
    2.jpg
    28 KB · Views: 175

alfaiz678

Active Member
Licensed User
I have a Samsung mobile version of Android 5
It works well
And tried in two different other than ever
The same problem appears
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
If a Samsung mobile connects to your PC it looks like a problem with the other devices. What are they?

I use an Android app, 'Primitive ftpd by wolpi', together with WinSCP on the desktop https://winscp.net/ as I find B4ABridge and File Explorer cannot always cope with many file (hundreds) or large (multi GB) transfers. This combination has been rock solid for me.
 
Upvote 0

alfaiz678

Active Member
Licensed User
If a Samsung mobile connects to your PC it looks like a problem with the other devices. What are they?

I use an Android app, 'Primitive ftpd by wolpi', together with WinSCP on the desktop https://winscp.net/ as I find B4ABridge and File Explorer cannot always cope with many file (hundreds) or large (multi GB) transfers. This combination has been rock solid for me.

I have easily contacted "Primitive FTPD by Wolpi"
And Filezilla Client
But for no gone by B4abridge
There are no FTP examples in the forum
All give the same result


I tried more than the FTP program on Google Play and all work
Is it a solution?
 
Last edited:
Upvote 0

alfaiz678

Active Member
Licensed User
Sorry but I don't understand any of the post above. Try Google translate.

I told you I had experienced I told me
You downloaded the "Primitive FTPD by Wolpi" application
And you connected to the Filezilla Client for PC
File transfer has been successfully connected

But when you experimented with b4abridge
The same error gets in the picture that is in POST # 1

I hope you understand me and a tired translation
 
Upvote 0

agraham

Expert
Licensed User
Longtime User
  1. Connect your B4A to the B4A-Bridge on your phone
  2. In B4A: Tools B4A Bridge > File Explorer
I think he's doing that and it's failing. See his first image.

He seems to have had it working on a Samsung so he knows what to do. I suspect the other devices are the problem but he hasn't replied to the question of what they are.
 
Upvote 0

alfaiz678

Active Member
Licensed User
I think he's doing that and it's failing. See his first image.

He seems to have had it working on a Samsung so he knows what to do. I suspect the other devices are the problem but he hasn't replied to the question of what they are.
The devices are LTP10i
And Redmi 9
But FTP applications that you downloaded from Google Play Store work well
 
Upvote 0

alfaiz678

Active Member
Licensed User
I offered an alternative to B4ABridge and File Explorer
Primitive FTP and Filezilla works for you.
Problem solved, isn't it?

Yes but I want to make my FTP application
Because I have an FTP application with B4A
The same problem occurs with
B4ABRIDGE and FILE Explorer
I think you understand now
And understand why I look for a solution
 
Upvote 0

alfaiz678

Active Member
Licensed User
The same error

Error: Failed to Retrieve Directory Listing

See the picture from Filezilla Client
 

Attachments

  • 9.png
    9.png
    30.9 KB · Views: 137
Upvote 0

alfaiz678

Active Member
Licensed User
And this is a picture of my mobile
Contact mobile phone but can not access to
DirRootExternal
 

Attachments

  • WhatsApp Image 2021-06-13 at 1.19.06 PM.jpeg
    WhatsApp Image 2021-06-13 at 1.19.06 PM.jpeg
    41 KB · Views: 128
Upvote 0

alfaiz678

Active Member
Licensed User
I did not change anything but the user name and password
Main:
Sub Process_Globals
    Private rp As RuntimePermissions
End Sub

Sub Globals

    Private lblState As Label
    Private lblServer As Label
End Sub

Sub Activity_Create(FirstTime As Boolean)
    Activity.LoadLayout("1")
    rp.CheckAndRequest(rp.PERMISSION_WRITE_EXTERNAL_STORAGE)
    Wait For Activity_PermissionResult (Permission As String, Result As Boolean)
    If Result Then
        Starter.server.Start
    Else
        lblServer.Text = "No permission!"
    End If
    

End Sub

Sub Activity_Resume
    FTPServer_StateChanged
End Sub

Public Sub FTPServer_StateChanged
    lblServer.Text = $"Server address: ${Starter.server.ssocket.GetMyWifiIP}
Port: ${Starter.server.Port}"$
    lblState.Text = $"Number of clients: ${Starter.server.NumberOfClients}"$
    Log(Starter.server.Running)
End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub

Starter:
Sub Process_Globals
    Public server As FTPServer
End Sub

Sub Service_Create
    server.Initialize(Main, "FTPServer")
    server.SetPorts(51041, 51042, 51142)
    server.AddUser("1", "1")
    server.BaseDir = File.DirRootExternal
    
End Sub

Sub Service_Start (StartingIntent As Intent)

End Sub

Sub Service_TaskRemoved
    'This event will be raised when the user removes the app from the recent apps list.
End Sub

'Return true to allow the OS default exceptions handler to handle the uncaught exception.
Sub Application_Error (Error As Exception, StackTrace As String) As Boolean
    Return True
End Sub

Sub Service_Destroy

End Sub
 
Upvote 0
Top