FAST SDK Update 0.8.9

New File Explorer Plugin

Version 0.8.9 comes with the new File Explorer plugin. There are now 9 plugins available in FAST SDK:

  • View Inspector
  • Actions
  • Overlays
  • Resource Explorer
  • Logger
  • Crash Info
  • SharedPreferences Editor
  • Network Inspector
  • File Explorer

Please visit the wiki for instructions about adding it to your project.

Version 0.8.9 also fixes an issue introduced in version 0.8.8 that was making it unusable.

We’ve added scrollbars to every RecyclerView, so that you can quickly determine the overall height of a list or grid.

Along with the various internal improvements, spinners are now constrained to a single line.

So, where is this folder already?

There are a lot of folders in Android, and a lot of classes to access them in various ways. It’s not always easy to determine where is a folder on the file system, especially when physical devices and emulators have slightly different overall file trees.

We thought it would be a good idea to provide a quick and easy “system folder” selector.

Here’s the list of the folders we have added in the quick selection spinner:

In spinnerAndroid property/method
context.cacheDircontext.getCacheDir()
context.codeCacheDircontext.getCodeCacheDir()
context.dataDircontext.getDataDir()
context.externalCacheDircontext.getExternalCacheDir()
context.filesDircontext.getFilesDir()
context.noBackupFilesDircontext.getNoBackupFilesDir()
context.getExternalFilesDir(null)context.getExternalFilesDir(null)
Environment.DIRECTORY_ALARMScontext.getExternalFilesDir(Environment.DIRECTORY_ALARMS)
Environment.DIRECTORY_AUDIOBOOKScontext.getExternalFilesDir(Environment.DIRECTORY_AUDIOBOOKS)
Environment.DIRECTORY_DCIMcontext.getExternalFilesDir(Environment.DIRECTORY_DCIM)
Environment.DIRECTORY_DOCUMENTScontext.getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS)
Environment.DIRECTORY_DOWNLOADScontext.getExternalFilesDir(Environment.DIRECTORY_DOWNLOADS)
Environment.DIRECTORY_MOVIEScontext.getExternalFilesDir(Environment.DIRECTORY_MOVIES)
Environment.DIRECTORY_MUSICcontext.getExternalFilesDir(Environment.DIRECTORY_MUSIC)
Environment.DIRECTORY_NOTIFICATIONScontext.getExternalFilesDir(Environment.DIRECTORY_NOTIFICATIONS)
Environment.DIRECTORY_PICTUREScontext.getExternalFilesDir(Environment.DIRECTORY_PICTURES)
Environment.DIRECTORY_PODCASTScontext.getExternalFilesDir(Environment.DIRECTORY_PODCASTS)
Environment.DIRECTORY_RINGTONEScontext.getExternalFilesDir(Environment.DIRECTORY_RINGTONES)
Environment.DIRECTORY_SCREENSHOTScontext.getExternalFilesDir(Environment.DIRECTORY_SCREENSHOTS)
Environment.getDataDirectory()Environment.getDataDirectory()
Environment.getDownloadCacheDirectory()Environment.getDownloadCacheDirectory()
Environment.getRootDirectory()Environment.getRootDirectory()

So let’s take an example. If you’re wondering where is located context.getFilesDir() on the filesystem:

  • Physical device (Android 5): /data/data/[application_package]/files
  • Physical device (Android 9): /data/user/0/[application_package]/files
  • Emulator (Android 9): /data/user/0/[application_package]/files

Basic features

A file explorer wouldn’t be explorer without a few basic features:

  • Ability to go to the parent folder directly
  • Number of files in a folder
  • Last modification date
  • File size
  • Creating a new folder
  • Creating a new file
  • Renaming a folder
  • Renaming a file
  • Deleting a folder
  • Deleting a file
  • Sorting a directory by name, date or size
Yes, you can explorer the root folder!

“Smart” invisible features

File Explorer will remember the last folder you were in, as well as the last folder you have selected in the spinner.

While this feature does seem trivial, it may save you a lot of time, saving you from the need to browse through several directories to get right where you were before recompiling the app.

Viewing files

File explorer will try to determine the file mime type and create the associated intent so that you can open the file with a third-party application.

File edition coming soon

File editing is not available, yet. Text editing will be a feature shared among several plugins, and we have already planned for it. It will include a few useful features like the possibility to format the text (like Json or XML for example), as well as to switch between charset encoding.

Share

Share on twitter
Share on linkedin
Share on reddit
Share on facebook
Share on email