-
public class InfoCenterExportUtil class containing constants and methods related to Information Center.
-
-
Field Summary
Fields Modifier and Type Field Description public final static StringACTION_EXPORT_SERVICEpublic final static StringACTION_STORE_DATApublic final static StringACTION_EXPORT_TO_USBpublic final static StringACTION_EXPORT_TO_CLOUDpublic final static StringACTION_EXPORT_COMPLETEDpublic final static StringKEY_EXTRA_EXPORT_COMMENTpublic final static StringKEY_EXTRA_EXPORT_FILENAMEpublic final static StringKEY_EXTRA_EXPORT_EXTENSIONpublic final static StringKEY_EXTRA_EXPORT_GROUP_NAMEpublic final static StringKEY_EXTRA_EXPORT_DATApublic final static StringDESTINATION_PACKAGE_NAMEpublic final static StringDESTINATION_SERVICE_NAME
-
Method Summary
Modifier and Type Method Description static voidexportData(Context context, String filename, String groupName, Array<byte> data)Store data in external storage. static voidexportData(Context context, String filename, String groupName, Array<byte> data, String extension)Store data in external storage. -
-
Method Detail
-
exportData
static void exportData(Context context, String filename, String groupName, Array<byte> data)
Store data in external storage. Creates a file that contains the given data that and isstored in a directory with a specific name.
- Parameters:
context- the calling contextfilename- the name of the filegroupName- Name of the directory that contains the file.data- Data that is stored in the file.
-
exportData
static void exportData(Context context, String filename, String groupName, Array<byte> data, String extension)
Store data in external storage. Creates a file with given filename and file extension that contains the givendata that and is stored in a directory with a specific name.
- Parameters:
context- the calling contextfilename- the name of the filegroupName- Name of the directory that contains the file.data- Data that is stored in the file.extension- File extension of the file that is to be stored
-
-
-
-