File Manager

EMDK For Android - 6.6

Overview

The File Manager (FileMgr) allows an application to manage files for the device, for example to download a file from a server to the device, or to copy a file or folder from one area of the device to another and delete the original. The File Manager also can extract files embedded within XML.

Main Functionality

  • Copy a file from local or remote locations to the device
  • Copy a file from data embedded in an XML object to the device
  • Copy or move a file or folder from one location on a device to another
  • Delete a file from the device
  • Copy a folder or archive file containing multiple files to the device

File Action

Used to specify the action to be performed on a file.

Parm Name: FileAction

Option Name Description Requires
1 Transfer/Copy File Copies a specified file to the device.

MX: 4.3+

4 Delete File Erases a specified file from the device.

MX: 4.3+

9 Download and Expand Archive File Copies an archive file to the device and extracts its contents.

MX: 5.0+

Target Access Method

Used to specify whether the file will be present in the device file system or embedded within an XML file.

Shown if: File Action is Transfer/Copy

Parm Name: TargetAccessMethod

Option Name Description Requires
2 File in Device File System Specifies that the file is in the device file system.

MX: 4.3+

Destination Path and File Name

Used to specify the destination path and file name on the device to which to copy the object of the File Action.

Parm value input rules:

  • String from 1 - 255 characters containing the destination path and file name

Shown if: File Action is Transfer/Copy

Parm Name: TargetPathAndFileName

Requires:

  • MX: 4.3+

Target URI

Used to specify the location (URI) of the file to copy from a remote server to the device.

Parm value input rules:

  • String containing the URI of the source file

Shown if: File Action is Transfer/Copy

Parm Name: TargetURI

Requires:

  • MX: 4.3+

Source Access

Used to specify the location of the source file to be copied or transferred.

Parm Name: SourceAccessMethod

Option Name Description Requires
1 File on remote server Indicates the source file is on a remote server.

MX: 4.3+

2 File on device file system Indicates the source file is on the device.

MX: 4.3+

3 File embedded in XML Indicates the source file is embedded in XML.

MX: 4.3+

Source URI

Used to specify the URI of the location of the file on the server.

Parm value input rules:

  • String containing the URI of the source file

Shown if: File Action is Transfer/Copy and source is remote server

Parm Name: SourceURI

Requires:

  • MX: 4.3+

Source Path and File

Used to specify the path and file name of the source file location on the device.

Parm value input rules:

  • String containing the path and file name of the source file

Shown if: File Action is Transfer/Copy and source is on device

Parm Name: SourcePathAndFileName

Requires:

  • MX: 4.3+

Embedded File Type

Used to specify the type of file to be embedded.

Shown if: File Action is Transfer/Copy and source is embedded

Parm Name: SourceType

Option Name Description Requires
1 General Data File Indicates a source file with any extension type.

MX: 4.3+

2 Android Application Indicates a source file with an .APK extension

MX: 4.3+

3 Android OS Update Indicates a source file with a .ZIP extension.

MX: 4.3+

XML Embeded Source

Used to specify the source file data to be embedded in the XML.

Shown if: File Action is Transfer/Copy and source type is 'File embedded in XML' and Embed type is 'General Data File' remote server

Parm Name: SourceDataAny

Requires:

  • MX: 4.3+

APK Embedded Source

Used to specify the APK source file data to be embedded in the XML.

Shown if: File Action is Transfer/Copy and source type is 'File embedded in XML' and Embed type is 'Android Application' remote server

Parm Name: SourceDataApk

Requires:

  • MX: 4.3+

OS Update Embedded Source

Provide the source ZIP file data to be embedded in the XML.

Shown if: File Action is Transfer/Copy and source type is 'File embedded in XML' and Embed type is 'Android OS Update' remote server

Parm Name: SourceDataZip

Requires:

  • MX: 4.3+

Archive Target Path and Folder Name

Used to specify the path and folder name into which the downloaded archive file should be expanded.

Parm value input rules:

  • String from 1 - 255 containing the path and file name of the destination folder

Shown if: File Action is Download and Expand Archive

Parm Name: ArchiveTargetPathAndFolderName

Requires:

  • MX: 5.0+

Archive Source URI

Used to specify the URI of the source archive/ZIP file.

Parm value input rules:

  • String from 1 - 255 containing the URI of the source archive/ZIP file

Shown if: File Action is Download and Expand Archive

Parm Name: ArchiveSourceURI

Requires:

  • MX: 5.0+