C Carlos Botafogo New Member Nov 30, 2021 #1 Hello: I am lookin for an answer for a very simple job: I want to open and read attached files I've got from E_Mail and WhatsApp. What is the most prctical way yo do that ? I am trying with the code bellow, but without good results. Code: Dim argh As String argh = File.Combine(File.DirRootExternal, "Download") Log(argh) For Each FileName As String In File.ListFiles(argh) Log(FileName) ListView1.AddTextItem(FileName,50) Next Thanx a lot. Last edited: Nov 30, 2021
Hello: I am lookin for an answer for a very simple job: I want to open and read attached files I've got from E_Mail and WhatsApp. What is the most prctical way yo do that ? I am trying with the code bellow, but without good results. Code: Dim argh As String argh = File.Combine(File.DirRootExternal, "Download") Log(argh) For Each FileName As String In File.ListFiles(argh) Log(FileName) ListView1.AddTextItem(FileName,50) Next Thanx a lot.
Erel B4X founder Staff member Licensed User Longtime User Dec 1, 2021 #2 Every piece of this short code is wrong. You should never see File.DirRootExternal in your code. You should never see ListView in your code. Carlos Botafogo said: I want to open and read attached files I've got from E_Mail and WhatsApp Click to expand... You cannot read files of other apps. You can make your app a "share target". This is demonstrated here: https://www.b4x.com/android/forum/t...-save-and-load-external-files.132731/#content Upvote 0
Every piece of this short code is wrong. You should never see File.DirRootExternal in your code. You should never see ListView in your code. Carlos Botafogo said: I want to open and read attached files I've got from E_Mail and WhatsApp Click to expand... You cannot read files of other apps. You can make your app a "share target". This is demonstrated here: https://www.b4x.com/android/forum/t...-save-and-load-external-files.132731/#content
C Carlos Botafogo New Member Dec 1, 2021 #3 Thanks a lot Erel. I gonna do that and tell about the success, I am sure. Upvote 0