Android Question File system related queries

Indic Software

Active Member
Licensed User
Hello,

I have a few questions to ask related to filing system in Android for betterment of my understanding...

  1. 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?
  2. How to get full path of current directory on storage media?
  3. How to change default current directory so that after that change all the file operations should happen in that directory only?
  4. Usually an Android application is installed under /data/data/<package name>.<application name> directory. Is this the case for B4A app also?
  5. How to prevent an app from getting installed or moved to External SD Card?
  6. Are there any way by which we can specify common storage location for multiple apps that we develop?
  7. 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
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
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

Indic Software

Active Member
Licensed User
Hello,

Thanks everyone for your valuable inputs.

Now I am a bit more clear about File System.

Regards,

Yogesh
 
Upvote 0
Top