Easy Paths Extension | Simplifies file path handling | handling both internal and external storage seamlessly

EasyPaths

Extension component simplifies file path handling in Android apps, handling both internal and external storage seamlessly.

Methods:

RootPath


Return the path of /system.

Return Type: text


DataPath


Return the path of /data.

Return Type: text


DownloadCachePath


Return the path of /cache.

Return Type: text


InternalAppDataPath


Return the path of /data/data/{package name} for Android versions prior to Android N (API level 24), and /data/user/0/{package name} for Android N (API level 24) and higher.

Return Type: text


InternalAppCodeCacheDir


Return the path of /data/data/{package name}/code_cache for Android versions prior to Android Lollipop (API level 21), and /data/user/0/{package name}/code_cache for Android Lollipop (API level 21) and higher.

Return Type: text


InternalAppCachePath


Return the path of /data/data/{package name}/cache for Android versions prior to Android N (API level 24), and /data/user/0/{package name}/cache for Android N (API level 24) and higher.

Return Type: text


InternalAppDatabasesPath


Return the path of /data/data/{package name}/databases for Android versions prior to Android N (API level 24), and /data/user/0/{package name}/databases for Android N (API level 24) and higher.

Return Type: text


InternalAppDatabasePath

Return the path of /data/data/{package name}/databases/{db name} for Android versions prior to Android N (API level 24), and /data/user/0/{package name}/databases/{db name} for Android N (API level 24) and higher.

Parameter Type
dbName text

Return Type: text


InternalAppFilesPath


Return the path of /data/data/{package name}/files for Android versions prior to Android N (API level 24), and /data/user/0/{package name}/files for Android N (API level 24) and higher.

Return Type: text


InternalAppSharedPrefsPath


Return the path of /data/data/{package name}/shared_prefs for Android versions prior to Android N (API level 24), and /data/user/0/{package name}/shared_prefs for Android N (API level 24) and higher.

Return Type: text


InternalAppNoBackupFilesPath


Return the path of /data/data/{package name}/no_backup for Android versions prior to Android Lollipop (API level 21), and /data/user/0/{package name}/no_backup for Android Lollipop (API level 21) and higher.

Return Type: text


ExternalStoragePath


Return the path of /storage/emulated/0.

Return Type: text


ExternalMusicPath


Return the path of /storage/emulated/0/Music.

Return Type: text


ExternalPodcastsPath


Return the path of /storage/emulated/0/Podcasts.

Return Type: text


ExternalRingtonesPath


Return the path of /storage/emulated/0/Ringtones.

Return Type: text


ExternalAlarmsPath


Return the path of /storage/emulated/0/Alarms.

Return Type: text


ExternalNotificationsPath


Return the path of /storage/emulated/0/Notifications.

Return Type: text


ExternalPicturesPath


Return the path of /storage/emulated/0/Pictures.

Return Type: text


ExternalMoviesPath


Return the path of /storage/emulated/0/Movies.

Return Type: text


ExternalDownloadsPath


Return the path of /storage/emulated/0/Download.

Return Type: text


ExternalDCIMPath


Return the path of /storage/emulated/0/DCIM.

Return Type: text


ExternalDocumentsPath


Return the path of /storage/emulated/0/Documents.

Return Type: text


ExternalAppDataPath


Return the path of /storage/emulated/0/Android/data/{package name}.

Return Type: text


ExternalAppCachePath


Return the path of /storage/emulated/0/Android/data/{package name}/cache.

Return Type: text


ExternalAppFilesPath


Return the path of /storage/emulated/0/Android/data/{package name}/files.

Return Type: text


ExternalAppMusicPath


Return the path of /storage/emulated/0/Android/data/{package name}/files/Music.

Return Type: text


ExternalAppPodcastsPath


Return the path of /storage/emulated/0/Android/data/{package name}/files/Podcasts.

Return Type: text


ExternalAppRingtonesPath


Return the path of /storage/emulated/0/Android/data/{package name}/files/Ringtones.

Return Type: text


ExternalAppAlarmsPath


Return the path of /storage/emulated/0/Android/data/{package name}/files/Alarms.

Return Type: text


ExternalAppNotificationsPath


Return the path of /storage/emulated/0/Android/data/{package name}/files/Notifications.

Return Type: text


ExternalAppPicturesPath


Return the path of /storage/emulated/0/Android/data/{package name}/files/Pictures.

Return Type: text


ExternalAppMoviesPath


Return the path of /storage/emulated/0/Android/data/{package name}/files/Movies.

Return Type: text


ExternalAppDownloadPath

Return the path of /storage/emulated/0/Android/data/{package name}/files/Download.

Return Type: text


ExternalAppDCIMPath


Return the path of /storage/emulated/0/Android/data/{package name}/files/DCIM.

Return Type: text


ExternalAppDocumentsPath


Return the path of /storage/emulated/0/Android/data/{package name}/files/Documents.

Return Type: text


ExternalAppObbPath


Return the path of /storage/emulated/0/Android/obb/{package name}.

Return Type: text


RootPathExternalFirst


Returns the root path with external storage as the first choice, falling back to internal storage if external storage is not available.

Return Type: text


AppDataPathExternalFirst


Returns the app data path with external storage as the first choice, falling back to internal storage if external storage is not available.

Return Type: text


FilesPathExternalFirst


Returns the files path with external storage as the first choice, falling back to internal storage if external storage is not available.

Return Type: text


CachePathExternalFirst


Returns the cache path with external storage as the first choice, falling back to internal storage if external storage is not available.

Return Type: text


This documentation was generated using Akshat Developer’s Documentation Generator.

Simple Usage

Download Old Version

me.aemo.easypaths.aix (28.8 KB)

Thanks for

1- @Anu10 for beta test this extension
2- @Akshat_Rana for Extension Document Generator

7 Likes

New Update

  • rename some blocks
  • replace all External Paths with properties block
  • more…

Download

me.aemo.easypaths.aix (29.6 KB)


Thanks for @Anu10 for beta test it

2 Likes