mmieher Active Member Licensed User Longtime User Feb 21, 2022 #1 I know a file in this folder exits because I mail it to myself. I cannot find it using any Android file manager. Only programmatically. Code: Dim darnFolder As String = Provider.SharedFolder Log("darnFolder: " & darnFolder) The log shows: darnFolder: /data/user/0/com.marcsmart.aaphonelist/files/shared My real question is where to put a temporary file that I can find with a file manager? Device does not have external storage ("real SD Card or mass storage device only" - @DonManfred ). But where is the Download folder? Have tried Code: File.DirInternal File.DirRootExternal xui.DefaultFolder Provider.SharedFolder
I know a file in this folder exits because I mail it to myself. I cannot find it using any Android file manager. Only programmatically. Code: Dim darnFolder As String = Provider.SharedFolder Log("darnFolder: " & darnFolder) The log shows: darnFolder: /data/user/0/com.marcsmart.aaphonelist/files/shared My real question is where to put a temporary file that I can find with a file manager? Device does not have external storage ("real SD Card or mass storage device only" - @DonManfred ). But where is the Download folder? Have tried Code: File.DirInternal File.DirRootExternal xui.DefaultFolder Provider.SharedFolder
Erel B4X founder Staff member Licensed User Longtime User Feb 22, 2022 #2 It is inside File.DirInternal on Android 7+ devices. Upvote 0
mmieher Active Member Licensed User Longtime User Feb 22, 2022 #3 Erel said: It is inside File.DirInternal on Android 7+ devices. Click to expand... Thanks, Erel(s). Well under File.DirInternal, I see a Download folder, but nothing is in it. DCIM has a Camera folder, but it is not in there either. Where is Mr. phonelist.pdf? Upvote 0
Erel said: It is inside File.DirInternal on Android 7+ devices. Click to expand... Thanks, Erel(s). Well under File.DirInternal, I see a Download folder, but nothing is in it. DCIM has a Camera folder, but it is not in there either. Where is Mr. phonelist.pdf?
B Brian Dean Well-Known Member Licensed User Longtime User Feb 22, 2022 #4 My real question is where to put a temporary file that I can find with a file manager? Click to expand... If that is your real question, and you are asking where can you put the file from within your app, then this is where you will find the answer ... SaveAs - Let the user select a target folder + list of other related methods Upvote 0
My real question is where to put a temporary file that I can find with a file manager? Click to expand... If that is your real question, and you are asking where can you put the file from within your app, then this is where you will find the answer ... SaveAs - Let the user select a target folder + list of other related methods
mmieher Active Member Licensed User Longtime User Feb 22, 2022 #5 Brian Dean said: If that is your real question, and you are asking where can you put the file from within your app, then this is where you will find the answer ... SaveAs - Let the user select a target folder + list of other related methods Click to expand... Thanks, Brian. I don't want the user to have to do anything. I am trying to generate a pdf (done) then just display the dog-gone thing. The pdf is just sitting in this nice little pdf object and all I want to do is pdf.WriteToStream somewhere I can find it again. The user can then share, save, print or whatever. All the pdf readers require a FILE and DIR as parameters. Upvote 0
Brian Dean said: If that is your real question, and you are asking where can you put the file from within your app, then this is where you will find the answer ... SaveAs - Let the user select a target folder + list of other related methods Click to expand... Thanks, Brian. I don't want the user to have to do anything. I am trying to generate a pdf (done) then just display the dog-gone thing. The pdf is just sitting in this nice little pdf object and all I want to do is pdf.WriteToStream somewhere I can find it again. The user can then share, save, print or whatever. All the pdf readers require a FILE and DIR as parameters.
B Brian Dean Well-Known Member Licensed User Longtime User Feb 22, 2022 #6 ... all I want to do is pdf.WriteToStream somewhere I can find it again. Click to expand... That is what I suspected. With the latest Android release you cannot write any data into any storage that is accessible to other apps without first getting the User's agreement (unless you have got special dispensation from Google). If you were writing this app for your own use you could compile it against an earlier SDK level, but not if you want to release to the Playstore. Upvote 0
... all I want to do is pdf.WriteToStream somewhere I can find it again. Click to expand... That is what I suspected. With the latest Android release you cannot write any data into any storage that is accessible to other apps without first getting the User's agreement (unless you have got special dispensation from Google). If you were writing this app for your own use you could compile it against an earlier SDK level, but not if you want to release to the Playstore.
asales Expert Licensed User Longtime User Feb 22, 2022 #7 mmieher said: I don't want the user to have to do anything. Click to expand... And Google don't want that you do this. The answers give to you by @Brian Dean is the options that you have actually. Upvote 0
mmieher said: I don't want the user to have to do anything. Click to expand... And Google don't want that you do this. The answers give to you by @Brian Dean is the options that you have actually.
mmieher Active Member Licensed User Longtime User Feb 22, 2022 #8 Okay, Fellas. Thank you for teaching me. I guess I need to use the pdf viewer lib and do it all in my App. Seems like a boat-load of overhead. Upvote 0
Okay, Fellas. Thank you for teaching me. I guess I need to use the pdf viewer lib and do it all in my App. Seems like a boat-load of overhead.