BugNot Member May 4, 2020 #1 Hello, How to copy a file from another application knowing that the two applications are mine? What is the path to File.DirInternal? /data/data/com.app.xy? How to go to the DirInternal of the other application? Thanks
Hello, How to copy a file from another application knowing that the two applications are mine? What is the path to File.DirInternal? /data/data/com.app.xy? How to go to the DirInternal of the other application? Thanks
DonManfred Expert Licensed User Longtime User May 4, 2020 #2 BugNot said: What is the path to File.DirInternal? /data/data/com.app.xy? Click to expand... yes BugNot said: How to go to the DirInternal of the other application? Click to expand... You can not access DirInternal of another Application. You can request permission to File.DirRootExternal (Runtimepermissions) and save the file on a Place on the SD-Card. Implement Runtimepermission in both apps so both can access the File in SDCard. You can send an Intent to the other app to inform the app about the new file. Upvote 0
BugNot said: What is the path to File.DirInternal? /data/data/com.app.xy? Click to expand... yes BugNot said: How to go to the DirInternal of the other application? Click to expand... You can not access DirInternal of another Application. You can request permission to File.DirRootExternal (Runtimepermissions) and save the file on a Place on the SD-Card. Implement Runtimepermission in both apps so both can access the File in SDCard. You can send an Intent to the other app to inform the app about the new file.
BugNot Member May 4, 2020 #3 Ouch, that doesn't suit me ... I have to find another solution. The user of the free version after use if he decides to buy the full version, I must be able to recover the files from the free to the full. Upvote 0
Ouch, that doesn't suit me ... I have to find another solution. The user of the free version after use if he decides to buy the full version, I must be able to recover the files from the free to the full.
Erel B4X founder Staff member Licensed User Longtime User May 4, 2020 #4 You can save the file under RuntimePermissions.GetSafeDirDefaultExternal in the free version. No special permission needed. Add Log(rp.GetSafeDirDefaultExternal) to see the path. It shouldn't be complicated to get the path of a different app. In the paid version you will be able to access that folder with the READ_EXTERNAL permission. Upvote 0
You can save the file under RuntimePermissions.GetSafeDirDefaultExternal in the free version. No special permission needed. Add Log(rp.GetSafeDirDefaultExternal) to see the path. It shouldn't be complicated to get the path of a different app. In the paid version you will be able to access that folder with the READ_EXTERNAL permission.
KMatle Expert Licensed User Longtime User May 4, 2020 #5 If you want to let the user do this by sharing:: https://www.b4x.com/android/forum/threads/receiving-shared-images-from-other-apps.81041/ Same for other file types then images. Upvote 0
If you want to let the user do this by sharing:: https://www.b4x.com/android/forum/threads/receiving-shared-images-from-other-apps.81041/ Same for other file types then images.
BugNot Member May 4, 2020 #6 Wow, great! thank you all for your answers, I will study all of this. Upvote 0