Android Question Dropbox file download

m33265

New Member
I can not download file from Dropbox from my app. On the same phone download with Android Chrome works, i can download same file from Google Drive, everything works.

Dropbox file link - https://www.dropbox.com/s/xoxra1208tnwwjh/Kravosoft_mobile.db3?dl=1

------------------------------------

b4a:
        Msgbox2Async ("Aktualizovat ?", "", "ANO", "NE", "", Null , False)
    
        Wait For MsgBox_Result (Result As Int)
                
        If Result = DialogResponse.POSITIVE Then
    
            File.Delete (Cesta, "Kravosoft_mobile.db3")
            File.Delete (Cesta, "Kravosoft_mobile.db3-journal")
            
            Dim j As HttpJob
                
            j.Initialize("", Me)
            j.Download("https://www.dropbox.com/s/xoxra1208tnwwjh/Kravosoft_mobile.db3?dl=1")
        
            Wait For (j) JobDone(j As HttpJob)
        
            If j.Success Then
        
                Dim out As OutputStream = File.OpenOutput(Cesta, "Kravosoft_mobile.db3", False)
        
                File.Copy2(j.GetInputStream, out)
        
                out.Close
        
                ExitApplication
        
            End If
                
            j.Release
                        
        End If
 

m33265

New Member
No, i even cant my Oukitel phone connect by cable to see files in phone, some weird drivers.

I tried download file thru WebView, no success.

I tried some "blind" user agent changes, no success.

So I changed path to file into Download folder, Android Chrome download works ok.

Maybe is here some way to start Android Chrome with given file adress, end app and after downloading file start program again. Stupid but sufficient way to everyday update of my program. Or delete old files programatically and then manually download file by Chrome shortcut on android screen.
 
Upvote 0
Top