Indic Software Active Member Licensed User Jun 20, 2017 #1 Hello, I have a few questions to ask related to filing system in Android for betterment of my understanding... By default, the current directory of an application corresponds to the "files" sub-directory that is automatically created at the root of the setup directory of the application. Is this True? How to get full path of current directory on storage media? How to change default current directory so that after that change all the file operations should happen in that directory only? Usually an Android application is installed under /data/data/<package name>.<application name> directory. Is this the case for B4A app also? How to prevent an app from getting installed or moved to External SD Card? Are there any way by which we can specify common storage location for multiple apps that we develop? If by chance an app is installed on external SD Card and the user connects his device to the PC in mass storage mode what would happen and how can we handle this situation? Regards, Yogesh
Hello, I have a few questions to ask related to filing system in Android for betterment of my understanding... By default, the current directory of an application corresponds to the "files" sub-directory that is automatically created at the root of the setup directory of the application. Is this True? How to get full path of current directory on storage media? How to change default current directory so that after that change all the file operations should happen in that directory only? Usually an Android application is installed under /data/data/<package name>.<application name> directory. Is this the case for B4A app also? How to prevent an app from getting installed or moved to External SD Card? Are there any way by which we can specify common storage location for multiple apps that we develop? If by chance an app is installed on external SD Card and the user connects his device to the PC in mass storage mode what would happen and how can we handle this situation? Regards, Yogesh
R ronell Well-Known Member Licensed User Longtime User Jun 20, 2017 #2 1. the directory will depend on where you put your files, see links 2. Code: Copy log(File.DirRootExternal) 'not sure 3. see links below https://www.b4x.com/android/help/files.html https://www.b4x.com/android/forum/threads/text-files.6690/ 4. yes 5. Code: Copy #CanInstallToExternalStorage: False Last edited: Jun 20, 2017 Upvote 0
1. the directory will depend on where you put your files, see links 2. Code: Copy log(File.DirRootExternal) 'not sure 3. see links below https://www.b4x.com/android/help/files.html https://www.b4x.com/android/forum/threads/text-files.6690/ 4. yes 5. Code: Copy #CanInstallToExternalStorage: False
Erel B4X founder Staff member Licensed User Longtime User Jun 21, 2017 #3 6. Folders in the secondary storage can be accessed by any app (with the external storage permission). Secondary storage = Any folder under File.DirRootExternal. Note that on almost all devices the secondary storage is not the sd card, but rather an internal storage. 7. The app will not be available. Upvote 0
6. Folders in the secondary storage can be accessed by any app (with the external storage permission). Secondary storage = Any folder under File.DirRootExternal. Note that on almost all devices the secondary storage is not the sd card, but rather an internal storage. 7. The app will not be available.
Indic Software Active Member Licensed User Jun 22, 2017 #4 Hello, Thanks everyone for your valuable inputs. Now I am a bit more clear about File System. Regards, Yogesh Upvote 0
Hello, Thanks everyone for your valuable inputs. Now I am a bit more clear about File System. Regards, Yogesh