My Project
Variables
LoadBCRExt

Load a BCR file from external directory. More...

Variables

static final int MSG_RI_LOAD_BCR_FROM_EXTERNAL_DIR = 303
 

Detailed Description

Load a BCR file from external directory.

Loads a BCR file from an external directory, copies it to the bcr directory of the Navigator (normally located under /sdcard/Android/data/com.ptvag.navigation.app/files/bcr/) and fills the target station vector with the stations found in the BCR.
A file with the same name in the bcr directory will be overwritten by this function.
Attention: The client software must use a FileProvider to grant access to the file.

Loading a bcr is done by using the android FileProvider class to be able to grant the foreign navigator app access to files of this client (needed for Android 10/11). The steps to grant a permission is as following:

For more implementation details, please see the RITest demo app.

The visited flags of the target stations will also be set as found.

Sending bundle:

KeyValueType

Info

FileName The name of the BCR file with path as uri String

Returned error codes:

RI_ERROR_NONE if everything is ok.
RI_ERROR_RI_DISABLED if the Remote Interface service is disabled and/or not licensed.
RI_ERROR_IS_INITIALIZING if the Remote Interface service is not initialized yet.
RI_ERROR_FILE_ACCESS if the file could not be loaded (either because of not granted permissions or of other load error). RI_ERROR_BCR error loading BCR file.


© PTV Group 2021 Generated on Sun Oct 2 2022 19:28:23 for My Project by doxygen 1.8.17